Dear All, Surely I can retrieve which node I have clicked by detecting mouse click.
But by walking up the parentNode's, I can only reach the root of the current document where the clicked node resides. Which puzzled me for such a long time is that I don't know how to retrieve the parent document of frame/iframe. In javascript, it seems very easy: parent.document.xxx.xxx, which I think equals to window.parent.document.xxx.xxx Maybe my question is how to retrieve the nsIDOMWindow of a specified nsIDOMDocument? Note that browser's DOMWindow is the top most nsIDOMWindow, which is not always what I wanted. Best Regards, enrico _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
