I’m trying to use short code to enter a little bit of javascript into a link to create a tooltip. But when I use the shortcode, the browser doesn’t recognize the inserted code – -instead it simply displays the code I’ve entered in the short code.
For example:
I created the shortcode “test”
It contains:
onmouseover ‘javascript:alert(“test”);’
I’ve inserted the shortcode into this link:
My output is:
onmouseover ‘javascript:alert(“test”);’ />
But instead of getting an alert box on mouseover, I just see the code on the page.
What am I doing wrong?
Thanks,
John