开发者

how to obtain the name or id given to an iframe by the main window, using javascript

I want to inject javascript code into an iframe that will retrieve the content of that iframe. I also want to obtain the name or ID assigned to that iframe, by the main window. (So that the name/id and data within iframe are sent together).

The javascript code will be injected into the iframe using a Google Chrome Extension. That extension will then do processing based on name/data received from the iframe.

Can this be done开发者_JAVA百科? How to implement it?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜