为了能在打开的窗口结束后再执行一段程序,我采用了window.showModelessDialog打开一个窗口,然后提交。
提交完了我执行window.close();如果窗口是用window.open打开的话,可以关闭当前打开的页面。而当我采用window.showModelessDialog方法时,提交后会再弹出一个新的页面。  这是为什么呢?  请高手指点迷津,不甚感激!

解决方案 »

  1.   


    <head></head>
    之间加入
    <base target="_self">
      

  2.   

    你要把你的页面嵌入frameset中~~
    比较TOP等 页面你的高度不要设置就不会显示出来了
      

  3.   

    <head> 
    <base target="_self">
    </head> 
    我一直都这样用的啊你怎么会不行呢?
      

  4.   

    window.openner = null;
    window.close(); 
      

  5.   

    在<head></head>中间行加入<base target="_self">
      

  6.   

    在 
    <head> </head> 
    之间加入 
    <base target="_self">这个加在popup的也面里,不是主页面
      

  7.   

    <base target="_self">我们都是这样用的
      

  8.   

    因为window.showModelessDialog只有在打开后的模式窗体关闭,后面的语句才会执行!