function openwindow( )
{  
 open ("2html", "注册窗口", "toolbars=no, scollerbars=no ,location=no, menubars=no,statubars=no,resizable=no,height=500px,width=600px") ;       }
</script>
</head><body onload="openwindow( )">
open ("2html"
关于路径的问题,如果在同一站点文件下,直接写就行了。但是不在同一个文件下,应该怎么写

解决方案 »

  1.   

    同个域的比较简单,通过相对路径就可以了
    ../dir/index.html 代表上级目录的dir文件夹下的index.html文件跨域的不会。。等LX高人解答
      

  2.   

       open("http://www.sina.com.cn", "注册窗口", "toolbars=no, scollerbars=no ,location=no, menubars=no,statubars=no,resizable=no,height=500px,width=600px");   
    这样?
      

  3.   

    window.open   只能打开 本域的页面如果跨域 必须新建 iframe  在 iframe 内 加载远程页面   用绝对地址   'http://www.sina.com.cn'
      

  4.   

    晕,你在哪听说window.open不能打开不同域的页面的?