标签:ram mes document toolbar ntb 父窗口 pre tool 知识点
1.获取iframe父窗口的dom节点parent.$("#id");
$('#父窗口中元素的id', parent.document).事件();
window.parent.document.getElementById("父窗口中元素的id").事件(); //js2.获取iframe子窗口的dom节点
$("#iframe的id").contents().find("#iframe中控件的id").事件();
$("#iframe中控件的id",document.frames("iframe的name").document).事情();
window.frames["iframe中的name值"].document.getElementById("iframe中控件的id").事件();//js标签:ram mes document toolbar ntb 父窗口 pre tool 知识点
原文地址:http://blog.51cto.com/dd118/2138573