WordPress.org

Ready to get started?Download WordPress

Forums

Bookmarklet (Href=javascript) not getting published in post (2 posts)

  1. Davind3r
    Member
    Posted 2 years ago #

    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

  2. Davind3r
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic