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?
精彩评论