开发者

Firefox Extension - Add Element to Body

I want to add a element to 开发者_如何学编程the body in my Firefox Extension per javascript. document.write("ads"); doesn't work. - no result in the sourcecode. I'm sure the JS is executed, because I have an alert(); on this place. It's possible?

/edit: have to use content.document.write


You should use this code to inject element into HTML:

document.body.appendChild
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜