很简单啊。你放个隐藏的input,初始值为0
你的body onclick的时候,如果input只为0就弹出你的要弹出的页面,同时把input值变成1
以后你在点的时候因为不满足条件所以不弹出

解决方案 »

  1.   

    在<body onclick="window.open('index.jsp');">这样就可以了
      

  2.   

    呵呵,不好意思,看错需求了,
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head>
    <title>form</title>
    <script type="text/javascript">var a = false;
    function _test()
    {
    alert(a);
    if(a==false)
    {
    window.open('index.html');
    a = true;
    }
    }
    </script>
    </head><body onclick="_test()"></body>
    </html>
    这样就可以了
      

  3.   

    niuxinlong,你的思路都对,就是IE下面不能运行,Firefox可以
      

  4.   

    <script>
    function fun()
            {
    document.body.detachEvent('onclick',fun); 
             alert();        }
    window.onload=function(){
    document.body.attachEvent('onclick',fun)
    }
    </script>