/ Published in: JavaScript

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
