开发者

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

开发者 https://www.devze.com 2023-04-03 16:19 出处:网络
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 an

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

精彩评论

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

关注公众号