开发者

window.frames['myframe'] gives me an error in Firefox?

$(window.frames['myframe'].document.getElementById('frameid'))

This statement sometimes returns nu开发者_C百科ll in Firefox but working properly in any other browsers. What can be the problem ?

Thanks in advance,


By the looks of it you simply need to change the selector it should be

$('#myframe').contents().find('#frameid').html();

JQuery handles the finding of it, take a look at selectors in jQuery Selectors

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜