adding onclick event to links Options
jason
Posted: Wednesday, January 24, 2007 9:09:30 PM
Rank: Aficionado

Joined: 7/19/2006
Posts: 182
Location: Pittsburgh, Pennsylvania, USA
When using the editor (v2.1.3), I can add a link using the toolbar link option or manually via the html editor window. However, when I try to add an onclick event, the editor removes all the quote marks which causes a syntax error.

For example, this code:
Code:


<a href="some.link.path" target="_blank" onclick="wexternal_alert();">Link</a>



is changed by the editor to:

Code:


<a href="some.link.path" target=_blank onclick=wexternal_alert();>Link</a>



This causes errors. Is there any way to stop the editor from removing the quotes? Any other suggestions for getting an onclick event into a <a> tag?

Thanks in advance

Jason
jason
Posted: Wednesday, January 24, 2007 9:24:00 PM
Rank: Aficionado

Joined: 7/19/2006
Posts: 182
Location: Pittsburgh, Pennsylvania, USA
nevermind. it works, even with removing the quotes, although I'd like them to remain.

I've just been looking at code for tooooo many hours without a break.

Jason
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.