在iframe中获取父窗口的元素
$(‘#父窗口中的元素ID’, parent.document).click();
在父窗口中获取iframe中的元素
$(“#iframe的ID”).contents().find(“#iframe中的控件ID”).click();
$(‘#父窗口中的元素ID’, parent.document).click();
$(“#iframe的ID”).contents().find(“#iframe中的控件ID”).click();
在iframe窗体内 获取父级的元素;;在父窗口中获取iframe中的元素
原文:https://www.cnblogs.com/lonelyxmas/p/8353815.html