Javascript 2 - Printable Version +- The DeLorean Owners Club UK Forum (http://www.deloreans.co.uk/forum) +-- Forum: OFF TOPIC TALK, BTTF, JOKES ETC (http://www.deloreans.co.uk/forum/forumdisplay.php?fid=3) +--- Forum: Off topic talk, general chat etc (http://www.deloreans.co.uk/forum/forumdisplay.php?fid=27) +--- Thread: Javascript 2 (/showthread.php?tid=1073) |
Javascript 2 - alexadams1 - 08 Nov 2007 I have been working on the following for some time. When text on a website is selected, enter the following into your address bar and the selected text will be emailed to you. javascriptelectedText=document.selection.createRange().text;selectedText=escape(selectedText);void(location.href='mailto:?BODY='+selectedText); it is all one line |