如果一个页面里有框架,分为左右两侧,左侧的名字为:hello1.aspx,
右侧的框架页面名为:hello2.aspx。那么如果我对hello1进行操作,
希望对hello2 产生影响,这样要保证对hello2进行刷新,方法很简单:
如下的三行可以实现:下面的几行在hello1下的某个事件中编写,
比如在单击hello1下的按钮时候

Response.Write("<script language=javascript>")

Response.Write("window.parent.main(frame 的名称).location='hello2.aspx';")

Response.Write("</script>")

相关文章:

  • 2021-11-28
  • 2022-12-23
  • 2021-06-11
  • 2022-12-23
  • 2022-01-19
猜你喜欢
  • 2022-02-22
  • 2022-12-23
  • 2022-12-23
  • 2022-03-01
  • 2021-09-25
  • 2022-12-23
相关资源
相似解决方案