Support » Fixing WordPress » Bookmarklet (Href=javascript) not getting published in post

  • Hi,

    I have coded a quick bookmarklet to find out the whois info of the current page. Now I want to put this link/bookmarklet on my blog, so that people can just drag it from there to their bookmark bars. I mean the link needs to be live an working.

    The code is following, and is working.
    Name

    Now, WordPress is changing this all javascript to href=javascript void() function. Cant we put Javascript: hrefs in post?

    Any help is appreciated..

    I have tried disabling all the plugins, but it made no difference..

    Thank you

Viewing 1 replies (of 1 total)
  • The Javascript code is

    javascript:(function(){var domain=window.location.hostname;domain=domain.replace(‘http://’,”).replace(‘https://’,”).replace(‘www.’,”);url=’http://davinder.net/test/inwhois.php?domain=’+domain;window.location=url;})()

    It goes in the href value section.

Viewing 1 replies (of 1 total)
  • The topic ‘Bookmarklet (Href=javascript) not getting published in post’ is closed to new replies.