<body >
<script>
var aa = showModelessDialog("1.html");
aa.document.write("ok");
aa.document.close();
</script>
</body>

解决方案 »

  1.   

    谢谢kingdomzhf(旭日东升) 。多问一个问题:)
    假如在某个页面里面加上一个定时器setTimeout,用什么语句能在时间到的时候激活这个页面,使之成为桌面的当前窗口。类似SetFocus之类的语句。
      

  2.   

    我测试了。好像aa.document.write("ok")不起作用。
      

  3.   

    setTomeout("test()","5000"); //5秒钟后 调用test函数 激活某页面function test(){
       aa.onfocuse();//aa是需要激活的页面的名字 如aa = showModelessDialog("1.html");}