<html>
  <body>
     <iframe id='po' style='width:300'></iframe>
     <input type=button value=modify onclick='document.all("po").style.width=500'>
  <script>
       
  </script>  </body>
</html>

解决方案 »

  1.   

    width:<input id=lansa1 type="text">
    height:<input id=lansa2 type="text">
    <iframe id=lansa style="width:300;height:200"></iframe>
    <input type="button" onclick="document.all('lansa').style.width=lansa2.value;document.all('lansa').style.height=lansa2.value;" value="bian">
      

  2.   

    比如说一个网页frame.htm里面有个object如下:
    <object id="doc_html" style="LEFT: 0px; TOP: 0px; width='95%'; height='520'" data="editor.html" type="text/x-scriptlet" VIEWASTEXT></object>
    我想在editor.html里面来设置frame.htm的这个object的高度和宽度,怎么做啊???????