开发者

get the document html elements in firefox addon

开发者 https://www.devze.com 2023-02-09 09:02 出处:网络
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.

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 ?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消