open new window and page

      function ltopenwin(url) {
          OpenWindow = window.open(url, "newwin", "height=650, width=750,toolbar=no, menubar=no, scrollbars=no, resizable=yes, location=no, status=no;tager");

          OpenWindow.document.write(" <script> function cancelPopUp(){close()}  </script> ");

          OpenWindow.document.write("<iframe  src=" + url + " id=OID height='100%' scrolling='yes' width='100%'  target='_self'></iframe>");
     
          OpenWindow.document.close();
      }

posted @ 2010-08-07 21:35  China2008  阅读(163)  评论(0编辑  收藏  举报