在包含iframe的页面中:
window.iframe_name.location.reload();
在iframe中:
parent.location.reload();
2 window.open子窗口
window.open("people.aspx?cno="+cid,"", "width=800, height=600,scrollbars=yes,top=100,left=200");
关闭为:
Response.Write("<script>window.opener.self.location.href=window.opener.self.location.href;window.close();</script>");
3获得iframe里面的元素
document.frames["iframe_name"].document.formname.textbox.value;

本文介绍了如何使用JavaScript操作网页中的iframe元素,包括刷新iframe、打开新窗口及其关闭方法,并展示了如何获取iframe内部的表单元素值。
1万+

被折叠的 条评论
为什么被折叠?



