Creating simple bookmarklet in javascript
<p>I'm trying to pick up the selected text of a document in a bookmarklet. How do I implement this?</p>

<p>I got this from the internet. Why does this not work?</p>

<p>javascript:
Q=document.selection?document.selection.createRange().text:document.getSelection(); alert(Q);</p>

<p>Thanks!</p>
