Wednesday, June 13, 2012

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:

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home