<button onclick="window.resizeTo(500,500);location='http://www.iecn.net'">click</button>这样?

解决方案 »

  1.   

    学习,我想当然的认为有read-only属性。up
      

  2.   

    1.html<html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    </head><body>
    <a href="#" onclick="javascript: window.open('2.html')">open a new window</a> 
    </body>
    </html>
    2.html<html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <script language="JavaScript">
    function aaa()
    {
    window.opener.location.href= "http://www.163.com"
    window.opener.window.resizeTo(300, 400)
    }</script>
    </head><body>
    <input name="button" type="button" id="button" onClick="aaa()" value="Button"></body>
    </html>
    =================一代过去,一代又来,地却永远长存。日头出来,日头落下,急归所出之地。
    风往南刮,又往北转,不住的旋落,而且返回转行原道,江河都往海里转,海
    却不满,江河从何处流,仍归何处。