怎么叫重新画?
是不是例如有一个表格,再重新按照这个表格画出相同的表格?
这样:
<div id="div1"><table><tr><td></td></tr></div>
<div id="div2"></div>
<input type=button onclick="javascript:document.div2.innerHTML=document.div1.innerHTML">

解决方案 »

  1.   

    <html>
    <head>
    <title>resizeto</title>
    <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
    </head><body>
    <form name="form1" method="post" action="">
      <input type="button" name="Button" value="Button" onClick="window.resizeTo(300,400)">
    </form>
    </body>
    </html>
      

  2.   

    <body>
    <button onclick="window.document.location.reload()">重载</button>
    </body>
      

  3.   

    可以用一个隐藏的部分缓存你要重画的部分然后需要重画的时候通过 js实现重画<script>
    function resetPage()
    {
    canReset.innerHTML=resetSource.innerHTML;
    }
    </script>
    <body onload='resetPage()'>
    <input type=button value="重画" onclick="'resetPage()">
    <div id='canReset'>
    </div>
    <div id='resetSource' style="display:none">
    要重画的代码
    </div>