I\'m trying to modify an existing webpage by inserting my own Javascript file in it. I\'m setting a background Image for this webpage by inserting a new Div through my Javascrip
You'd have to loop through all of the elements on the page, until one matches the className you are looking for. Something like: var div = document.getElementsByTagName('div'); for(i=0; i 0 讨论(0) 查看其它3个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
elements on the page, until one matches the className you are looking for. Something like: var div = document.getElementsByTagName('div'); for(i=0; i 0 讨论(0) 查看其它3个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
className
var div = document.getElementsByTagName('div'); for(i=0; i