/ Published in: JavaScript
![](/img/icon_sav.png?v3)
Passes variables for url and highlighted text.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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;})();
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)