var p = window.open("index.html");
alert(p)

解决方案 »

  1.   

    在被弹出的窗口:<script language="javascript">
    function CheckOpen()
    {
    if (window.opener){
    alert(window.opener.location);
    }else
    {
    alert('不是open的窗口');
    }
    }
    </script><input type="submit" name="Submit" value="提交" onclick="CheckOpen()"/>
      

  2.   

    感谢楼上的回复,但问题还是没有解决呢。我是想知道window.open跟链接点击出来的窗口有什么样子的区别,做特殊处理。还望高手指教!
      

  3.   

    上边代码不是说的很清楚么,如果是链接打开的,就没有window.opener.
    就是通过判断window.opener来区别.