您的位置:首页 > Web前端 > JavaScript

javascript刷新页面 (子窗口 window.open iframe)

2007-09-25 12:51 681 查看
在包含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;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐