Re: Can I get document.links in JavaXPCOM ?
Michal Ceresna <[email protected]> Sun, 17 Jun 2007 17:33:10 +0200
| Newsgroups | gmane.comp.mozilla.devel.java |
|---|---|
| Message-ID | <200706171733.10452.michal.ceresna__48261.2707456157$1182094620$gmane$org@gmail.com> |
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