Creating a simple bookmarklet in javascript
I am trying to match the highlighted text of a document in a bookmarket. How to implement this?
I got this from the internet. Why doesn't it work?
JavaScript: & Alpha; Q = document.selection document.selection.createRange () text :. Document.getSelection (); alert (Q);
Thanks!
0
raj
a source
to share