<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - noah</title>
<link>http://snipplr.com/users/noah/language/html/tags/js</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 23 May 2013 06:31:35 GMT</pubDate>
<item>
<title>(HTML) Bookmarklet Template: turn any snippet of JavaScript code into a Bookmarklet</title>
<link>http://snipplr.com/view/22806/bookmarklet-template-turn-any-snippet-of-javascript-code-into-a-bookmarklet/</link>
<description><![CDATA[ <p>[Will](http://twitter.com/wschenk) originally showed me how easy it is to transform random JS snippets into bookmarklets.  Once you set up the HTML, just view it in Firefox, and then drag the link to your bookmarks toolbar.

The basic form is 

&amp;lt;a href="javascript:CODE;void 0;"&amp;gt;NAME&amp;lt;/a&amp;gt;

Where `CODE` is any arbitrary JavaScript code, and `NAME` is the name you want the bookmarklet to have once it has been added to the Firefox toolbar.

And of course *don't use the javascript: protocol* in your HTML pages -- although it's (only!) OK for bookmarklets.</p> ]]></description>
<pubDate>Mon, 09 Nov 2009 17:34:49 GMT</pubDate>
<guid>http://snipplr.com/view/22806/bookmarklet-template-turn-any-snippet-of-javascript-code-into-a-bookmarklet/</guid>
</item>
</channel>
</rss>