Hi,
 
This might not be the right question for this mailing list, but i am unable to find a mailing list for XUL in Mozilla dev forums, hence posting the question here.
 
I am tring to create an XUL overlay that will create a button in the browser window.

Some function of the a button will be to allow the user to hilight text in any web page and click the button, so that i can get the contents of the button that the user has highlighted.

The problem I have is that in the _javascript_, the document referenced by
the document object is a XULdocument, not the browser window
document where the user has selected some text. Hence the
document.getSelection() doesnt do what I need.

Can anyone guide me to how i can get the browser window document rather than the XULdocument in the _javascript_?
Thanks,
Gautam


Yahoo! for Good
Click here to donate to the Hurricane Katrina relief effort.

Reply via email to