How can I put javascript in an a-href attribute in a Wordpress blog post?

I've created a javascript bookmarklet and I'm trying to write a blog post about it on a Wordpress blog. I would like readers to be able to drag a link from the post to their bookmark toolbar to save the bookmarklet. However, when I create a link with the bookmarklet code in the "href" attribute, it does not save properly. I gather Wordpress is finicky about including javascript in posts. How can I put javascript code into an href attribute of an "a" tag in a Wordpress post? I'm using Wordpress 2.0.4 and I'm not using the visual rich editor.

Public Comments

  1. I don't know wordpress, but I do know bookmarklets! I just code them as <a href="javascript:..."> it gets long, but that's their nature! What does you bookmarklet do?
Powered by Yahoo! Answers