Frame/iFrame Element Accessibility/Manipulation
Attach an event method to the unloaded iFrame body
var reportFrame = document.getElementById("reportFrame");
reportFrame.contentWindow.document.getElementsByTagName('body')[0].onmousedown = function () {
top.hideSubMenu("admin", "adminSubMenu");
};
Some Useful Navigation Through iFrame
top.frames[1].frames[tab].document.getElementById(subMenuDivId).style.display = "none";
window.frames[tab].frames["tabs"].showSubMenu();
parent.frames["navBar"].showNav();
document.getElementsByTagName('iframe')[1].contentWindow.frames[0].callSubMenu()
iframe.contentWindow.showSourceDataList()
Labels: JavaScript
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home