用window.location.replace("xxx.htm")打开

解决方案 »

  1.   

    屏蔽右键:
    <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>
      

  2.   

    楼上的,如果按快捷键“back space”呢?
      

  3.   

    但我的页面都是form submit上去的,
    用window.location.replace应该不行
      

  4.   

    form本页啊
    <form target="_self">
      

  5.   

    to net_lover(孟子E章) 
    这样好像也不行,按快捷键“back space“也可以回
      

  6.   

    function test()
    {
    var a = window.open("","b");
    document.formname.target="b"
    document.formname.submit()
    a.opener.opener=null
    a.opener.close()
    }
      

  7.   


    用window.location.replace("xxx.htm")跳转到一个页面,就已经把“历史(HISTORY)”清除掉了,所以不存在返回了。无论你按什么都没有用。