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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.