Js gets the values of the elements and variables in the HTML iframe
- 2020-03-30 03:28:16
- OfStack
Last week, I tried to get the values of the elements and js variables in the iframe, but I failed to get them.
Instead of using the $(document).ready() method, you can use the $("#iframeId").load() method, which is not available until the iframe is loaded
Take the value of the js variable in the iframe:
document.frames['x'].y
That's fine.