屏蔽右键: <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>
<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)”清除掉了,所以不存在返回了。无论你按什么都没有用。