javascript to select text from web page
- by phil swenson
I'm trying to write a bookmarklet that grabs any selected text on a web page and sends it to my website. It should (hopefully) work in Chrome, FFX, Safari, and IE. I did a search and found a function, but it doesn't appear to work. Here is the code:
<html>
<body>
<div onClick=getSelText()>Click</div>
<div>please…