转载自 仰天一笑
先前写了一片用window.location.href实现刷新另个框架页面 ,现在我将他整理成全部的js功能,方便查阅
具体如下:
//简单跳转
function gotoPage(url)
{
// eg. var url = "newsview.html?catalog;// use dom to change page by iframeName

//因为 parent.iframename.location="../index.aspx"; 方法不能实行,主要是 "parent.iframename" 中的iframename在js中被默认为节点,而不能把传递过来的参数转换过来,所以用dom实现比较方便
}
// 回到首页
function gohome()
{
top.location = "/index.aspx";
}
</script>

相关文章:

  • 2022-12-23
  • 2021-04-06
  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
  • 2021-08-25
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案