Muhamad Bhaa Asfour
Muhamad Bhaa Asfour

Reputation: 1035

get the document html elements in firefox addon

I'm creating a firefox extension and I want to get the HTML page elements using javascript but the document.getElementsByTagName('*') is always giving me an xul objects array.

How can I get the HTML objects array ?

Upvotes: 7

Views: 5186

Answers (1)

Neil
Neil

Reputation: 55432

If you want to access the current tab's content from an extension then you need to use content.document.getElementsByTagName('*') etc.

Upvotes: 6

Related Questions