Return to Snippet

Revision: 23921
at February 16, 2010 15:58 by vagrantradio


Initial Code
javascript:(function(){if(window.getSelection){t=window.getSelection();}else%20if(document.getSelection){t=document.getSelection();}else%20if(document.selection){t=document.selection.createRange().text;};location.href='http://www.yourdomain.com/?&u='+encodeURIComponent(location.href)+'&t='+t;})();

Initial URL

                                

Initial Description
Passes variables for url and highlighted text.

Initial Title
CROSS BROWSER GETSELECTION BOOKMARKLET

Initial Tags
javascript, link

Initial Language
JavaScript