网页跳转???在线

enthuris 2003-08-19 02:51:12
对记录进行修改,我用的是
<a href="Javascript:window.open('modify.asp?ID=<%=rs("id")%>','','height=300,width=800,resizable=no,scrollbars=YES,status=no,toolbar=no,messagebar=N0,location=no');">修改</a>的链接,但是这样子,我在当前页面就显示[object],所以我就改成下面这样:
<a href="Javascript:window.open('modify.asp?ID=<%=rs("id")%>','','height=300,width=800,resizable=no,scrollbars=YES,status=no,toolbar=no,messagebar=N0,location=no');history.go(1);">修改</a>
虽然好像可以了,但是实际问题没有解决。
请问该怎么办,像用JS链接的话,该如何确保还是在当前页面???
...全文
125 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
enthuris 2003-08-19
  • 打赏
  • 举报
回复
我有modify.asp的页面中有下面一断代码,就是希望修改同时,刷新当前页的记录,
<script LANGUAGE="JavaScript">
  function leave() {
self.opener.location.reload();
  }
</script>
</head>
<body bgcolor="" onUnload="leave()">
这样会不会和上面的有冲突,因为如果我再添加一条记录,然后再修改后,它就显示是“不重新发送信息,则无法刷新网页,请单击‘重试’……”
lijunjiejava 2003-08-19
  • 打赏
  • 举报
回复
<a href="Javascript:window.open('modify.asp?ID=<%=rs("id")%>','','height=300,width=800,resizable=no,scrollbars=YES,status=no,toolbar=no,messagebar=N0,location=no');" target="_blank">
这样就可以在另一页打开文件了
junsisi 2003-08-19
  • 打赏
  • 举报
回复
改成这样试试:

<a href="#" onclick="Javascript:window.open('modify.asp?ID=<%=rs("id")%>','','height=300,width=800,resizable=no,scrollbars=YES,status=no,toolbar=no,messagebar=N0,location=no');">修改</a>
enthuris 2003-08-19
  • 打赏
  • 举报
回复
在当前页面用Javascript:window.open()打开窗口,但是确保该页面的显示,能不能不用history
enthuris 2003-08-19
  • 打赏
  • 举报
回复
不行啊,怎么会这样?
甘泉123 2003-08-19
  • 打赏
  • 举报
回复
javascript:window.history.back(-1)
甘泉123 2003-08-19
  • 打赏
  • 举报
回复
history.go(-1)
enthuris 2003-08-19
  • 打赏
  • 举报
回复
能不能具体一点?
pp4u 2003-08-19
  • 打赏
  • 举报
回复
在modify.asp中,最后加上opener.location.href=yourpage.htm
ielong 2003-08-19
  • 打赏
  • 举报
回复
<script>setTimeout("window.location='http://www.ielong.net';",2000);</script>

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧