Re: Can I get document.links in JavaXPCOM ?
Michal Ceresna <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.oji |
|---|---|
| Message-ID | <[email protected]> |
On Sunday 17 June 2007, Carfield Yim wrote: Hello, > Can I get the list of links with document.links in JavaXPCOM? sure, nsIDOMDocument doc = ...; nsIDOMHTMLDocument htmlDoc = (nsIDOMHTMLDocument) doc.queryInterface(nsIDOMHTMLDocument.NS_IDOMHTMLDOCUMENT_IID); nsIDOMHTMLCollection links = htmlDoc.getLinks(); best regards, Michal