用window.location.replace("xxx.htm")打开
解决方案 »
- 请高人指导帮我定义成一个函数
- 很奇怪的问题,ext4单击或选择复选框,为何触发事件无效?
- 最近很少关注CSDN,推荐自己的网站,顺便分享google search api
- 各位大侠,我写的一个基于基数排序的脚本,排15000条数据的时候IE报错,大家看看还可以优化吗?
- 如何在点击一个下拉框的同时,访问数据库,改变另一个下拉框的内容
- 关于输入时间的校验-----ONLINE ,马上给分!
- 100分:点击图像按钮,先对form里的文本框T1校检数据,通过的话就提交(用window.open()方式),不通过就提示,怎么做呢?
- 省份及市区相关的二极下拉菜单
- 我想循环输出信息,但总是刷新一次,就把整个循环写到浏览器上去,我要的是刷新一次浏览器显示新的内容而不是新加内容
- 跪求 进来看看 Ext4.0.7困惑我几天了 诡异传奇 永垂不朽 totalProperty
- 请教:如何将滚动条显示于浏览器的左边?(可以吗?)
- 怎样在点击radio后,下拉选单的默认值同步变化??
<html><head>
<SCRIPT language=JavaScript1.2>
if (window.Event) // Only Netscape will have the CAPITAL E.
document.captureEvents(Event.MOUSEUP); // catch the mouse up eventfunction nocontextmenu() // this function only applies to IE4, ignored otherwise.
{
event.cancelBubble = true
event.returnValue = false; return false;
}function norightclick(e) // This function is used by all others
{
if (window.Event) // again, IE or NAV?
{
if (e.which == 2 || e.which == 3)
return false;
}
else
if (event.button == 2 || event.button == 3)
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
}document.oncontextmenu = nocontextmenu; // for IE5+
document.onmousedown = norightclick; // for all others
</SCRIPT><META http-equiv="Content-Type" content="text/html; charset=gb2312">
<SCRIPT language=JavaScript1.2>
if (window.Event) // Only Netscape will have the CAPITAL E.
document.captureEvents(Event.MOUSEUP); // catch the mouse up eventfunction nocontextmenu() // this function only applies to IE4, ignored otherwise.
{
event.cancelBubble = true
event.returnValue = false; return false;
}function norightclick(e) // This function is used by all others
{
if (window.Event) // again, IE or NAV?
{
if (e.which == 2 || e.which == 3)
return false;
}
else
if (event.button == 2 || event.button == 3)
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
}document.oncontextmenu = nocontextmenu; // for IE5+
document.onmousedown = norightclick; // for all others
</SCRIPT><META NAME="description"
CONTENT="netwalk Design museum-- design in China: Design Competitions, news, gallery, digests, solon, schools, links, service, jobs, classroom and so on">
<SCRIPT language=JavaScript1.2>
if (window.Event) // Only Netscape will have the CAPITAL E.
document.captureEvents(Event.MOUSEUP); // catch the mouse up eventfunction nocontextmenu() // this function only applies to IE4, ignored otherwise.
{
event.cancelBubble = true
event.returnValue = false; return false;
}function norightclick(e) // This function is used by all others
{
if (window.Event) // again, IE or NAV?
{
if (e.which == 2 || e.which == 3)
return false;
}
else
if (event.button == 2 || event.button == 3)
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
}document.oncontextmenu = nocontextmenu; // for IE5+
document.onmousedown = norightclick; // for all others
</SCRIPT>
<title>设计杂志 .NdM</title>
</head><body bgcolor="#750000" text="white">
屏蔽右键的完整代码!支持IE NN!!!</body>
</html>
用window.location.replace应该不行
<form target="_self">
这样好像也不行,按快捷键“back space“也可以回
{
var a = window.open("","b");
document.formname.target="b"
document.formname.submit()
a.opener.opener=null
a.opener.close()
}
用window.location.replace("xxx.htm")跳转到一个页面,就已经把“历史(HISTORY)”清除掉了,所以不存在返回了。无论你按什么都没有用。