你把a和b直接当作一个window对象来操作就可以了
比如:window.document你用a.document就可以了。
和操作本页上控件是同样的道理。

解决方案 »

  1.   

    在a里用
    window.parent.b.l.style.fontcolor=???
      

  2.   

    window.parent.b.l.style.color="#009900";
      

  3.   

    比如<td id="1">&nbsp;<a href="user_update.php?yhm=$yhm" target="right"><font color="#FF0000">张三</font></a></td>
    使用td的id要把链接和颜色都改了应该怎么弄呢?
    我js菜菜
    希望大家再帮我一下
      

  4.   

    <INPUT type="button" onClick="top.MainArea.location.style.bgcolor='#..'" value="test" class="button">
      

  5.   

    看在你叫做bergkamp的份上,帮你顶一下
      

  6.   

    <HTML>
    <HEAD>
    <TITLE> New Document </TITLE>
    <META NAME="Generator" CONTENT="EditPlus">
    <META NAME="Author" CONTENT="">
    <META NAME="Keywords" CONTENT="">
    <META NAME="Description" CONTENT="">
    </HEAD><BODY>
    <iframe src='' name='s1' id='s1'></iframe>
    <iframe src="ceshi.htm" name="sframename"></iframe> <input type='button' name='b1' onclick='alert(document.frames("sframename").document.all("body1").innerHTML)' value='显示'>
    <input type='button' name='b1' onclick='document.all["s1"].src="http://www.oatwo.com/index.asp"' value='显示'>
    </BODY>
    </HTML>