Support » Fixing WordPress » Insert a non-http link into WordPress

  • I would like to add a bookmarklet into my blog. A bookmarklet is a JavaScript “link” that instead of opening a new website it calls a JS function.

    The link would be something like this: “javascript:function foo()”. However, both editors – visual and HTML – scrub out the javascript bit and replace it with “http://”.

    Is there a way to turn this off and insert the non-http text manually?


Viewing 4 replies - 1 through 4 (of 4 total)
  • I just tried what you attempted to do and it worked fine in both visual and html editors. It did wrap my link in <p></p> but the javascript part did not have http:// inserted. 2.7.1

    Don’t know what to suggest to you other than try again.

    Thanks for your response. Are you using wordpress on your own server or Could be that has a more aggressive JS filter to avoid cross site scripting and other shenanigans.

    Oh, I’m sorry, I didn’t notice you were referring to This forum really is for self-hosted WordPress.

    I believe prohibits the use of javascripts.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Insert a non-http link into WordPress’ is closed to new replies.