如题,这样打开本页时就不允许直接从本页打开其它页面,其实是想不允许在地址栏中运行js程序。有没有办法啊?

解决方案 »

  1.   


    function Go()
    { window.open('index.aspx','MainPage','location=no,scrollbars=yes,width=700px,height=500px,left=200px,top=150px');
    }
    //location   =   {   yes   |   no   |   1   |   0   }   Specifies   whether   to   display   the   input   field   for   entering   URLs   directly   into   the   browser.   The   default   is   yes. 
      

  2.   

    window.open("","name1","width=100,height=200,toolbar=no,scrollbars=no,menubar=no,screenX=100,screenY=100");