Reputation: 26860
mainpage.html
<html>
<div id="123" name="foo"></div>
<iframe src="/innerpage.html"></iframe>
</html>
innerpage.html:
<html>
and here is some GWT widget that needs to access the div with id="123":
DOM.getElementById("123").getAttribute("name")
</html>
Upvotes: 1
Views: 1149
Reputation: 1627
You should be able to do this using parent.getElementById("123");
Note that the innerpage and mainpage will likely need to be within the same domain to prevent this getting flagged as cross-site scripting.
Upvotes: 1