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

Javascript刷新其他Frame,取得其他FrameURL的方法

2016-07-10 09:25 344 查看
1. 刷新其他Frame的方法:

前台: 在Javascript或事件中:
parent.main.location = 'xxx.aspx?...";

后台:
Response.Write("<script>parent.main.location='xxx.aspx?...';</script>");

2. 取得其他Frame的URL:

后台:
ClientScript.RegisterStartupScript(this.GetType(), "abc", "alert(parent.main.location);", true);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Frame