<body onclick="window.open('about:blank').document.write(outerHTML)">

解决方案 »

  1.   

    <script>
    function openTheSame()
    {
    var wsh = new ActiveXObject("WScript.Shell");
    wsh.sendKeys("^{n}")
    }
    </script>
    <body>
    <FORM METHOD=POST ACTION="">
    <INPUT TYPE="text" NAME="a"><BR>
    <INPUT TYPE="text" NAME="b"><BR>
    </FORM>
    <a href="#" onclick="openTheSame();">再打开一页</a>
      

  2.   

    首先感谢: fason(阿信) xhbmj 两位的回答,还有一问:比如现在我的窗口是分框架的,共有四个框架,我想在一个框架中通过一个按钮点击实现另一个框架(a)中加及其页面在新窗口中最大化显示,并且这个框架(a)中的相关操作要保持。Any reply here will be appreciated.
      

  3.   

    <input type=button onclick="window.open('about:blank','','width='+screen.width+',height='+screen.height).document.write(document.frames['a'].document.body.outerHTML)" value='open'>
      

  4.   

    谢谢: fason(阿信) 的回复,现在还在思考中,好像不能实现:<input type=button onclick="window.open('about:blank','','width='+screen.width+',height='+screen.height).document.write(document.frames['a'].document.body.outerHTML)" value='open'>'about:blank‘应该写什么呢?
    不好意思我 比较菜,现漫漫研究研究,
    希望各位大虾继续给语指点,
    明天晚上结贴
      

  5.   

    我的测试通过
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    </head>
    <body bgcolor="#FFFFFF" text="#000000">
    <p>
      <input type="button" name="Button" value="打开一样的网页" onclick="popwin()">
      <script language="JavaScript">
    function popwin()

    guagua=window.open('about:blank','guagua');
    guagua.document.write(document.getElementsByTagName("html")[0].outerHTML)
    guagua.document.close();

    </SCRIPT>
      vcsdfsdfasdf</p>
    <p> 
      <input type="submit" name="Submit" value="Submit">
      <input type="text" name="textfield" value="诉讼法">
    </p>
    </body>
    </html>