Last week, I wanted to obtain the elements and js variable values in the iframe, but I haven't obtained them. I found out that:
You cannot use the $(document).ready() method, but use the $("#iframeId").load() method, and you can only obtain it after the iframe is loaded.
Take the js variable value in the iframe:
document.frames['x'].y
This is OK.
Alas, it’s a very simple question. It’s been a long time, so it shouldn’t be!