检测:
Request.ServerVariables("HTTP_REFERER")

解决方案 »

  1.   

    把地址栏去掉,在页面显示页面地址不就可以了?
    <span id="myLoc"></span>
    <script>
    document.getElementById("myLoc").innerHTML = window.location.href;
    </script>
      

  2.   

    to:麦盾我想要得效果是: 让用户在index.jsp页面 通过验证后 转到index1.jsp页面的时候IE的地址栏 消失掉。请问 应该怎样写代码 而且这个代码应该写在那个页面
      

  3.   

    老大,那你让index.jsp页面自动关掉好了,index1.jsp新开不带location.
    有种办法可以让非window.open的窗口自动关掉的,我用过,只是这会没带代码。
      

  4.   

    我刚才试了window.open('index1.jsp','location=no');好像不对
      

  5.   

    <script>
    window.open("index1.jsp",null,"status=yes,menubar=no,location=no");
    window.close();
    <script>
      

  6.   

    Request.ServerVariables("method") == "GET"
    重定向
    在程序中访问服务器程序用POST 方式
      

  7.   

    找到了,就是这个:
    <OBJECT id=closes type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
    <param name="Command" value="Close">
    </object>
    <script language="JavaScript">
    <!--
    var iw=640, ih=480;
    var ix = (window.screen.width - iw)/2;
    var iy = (window.screen.height - ih)/2;
    var win = window.open("yourPageURL.html","","fullscreen=1",true);
    win.resizeTo(iw, ih);
    win.moveTo(ix,iy);
    showModalDialog("about:<script>self.close()</"+"script>","","dialogTop:0px; dialogLeft:2000px;dialogHeight:1px;dialogWidth:1px;center:yes; help: No; resizable: No; status: No;");
    closes.Click();
    //-->
    </script>怎么样?嘿嘿
      

  8.   

    to:麦盾是不是把我得window.open(index1.jsp) 这句话 换成你上面得就OK 了哦
      

  9.   

    把 yourPageURL.html 换成 index1.jsp
    var iw=640, ih=480;
    改成你需要的新窗口大小iw(宽), ih(高)
      

  10.   

    如果在index1.jsp里加
    <script>
    function cancelkey() { event.returnValue = false; }
    document.onselectstart = cancelkey;
    </script>
    效果就……嘿嘿
      

  11.   

    to:麦盾<script>
    function cancelkey() { event.returnValue = false; }
    document.designMode='On'
    document.onselectstart = cancelkey;
    </script>
    sdfgsgsd其实我是想在设计模式下能将ctrl+N及鼠标右击屏蔽掉,
    你看能有办法实现吗?