| |||||||||||||||||||||||||||||
|
I'm writing a Firefox extension to select text. How do I specify the selection in the function call? <popup id="contentAreaContextMenu"> <menuitem id="helloworld" label="Select It" accesskey="T" insertafter="context-stop" oncommand="SelectCopy( );"/> </popup> I tried running this with void and wrote a function to test this. var = window.getSelection(); alert("selected text= " + txt); This always prints null even when I use the toString() I still get null. Is there an easy way to specify selections? _______________________________________________ support-firefox mailing list support-firefox https://lists.mozilla.org/listinfo/support-firefox To unsubscribe, send an email to support-firefox-request?subject=unsubscribe
| ||||||||||||||||||||||||||||
© 2004-2008 readlist.com