Viewing 1 post (of 1 total)
    • Author
      Posts
    • jgold723
      Guest

      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

    Viewing 1 post (of 1 total)
    • The topic ‘code is being displayed, not processed?’ is closed to new replies.

    Subscribe to our Newsletter

    Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam. View newsletter

    By using this website, you agree to our Terms