看过类似的!拷贝过来,自己改改就可以啦!比如这个button有一个onclick事件
a.html:<input type=button value=ChangeMainLocation onclick="bChange()">
<script>
function bChange(){
    parent.main.location.href="http://www.ibeyond.org/";//后边的url就是你要替换的
}
</script>

解决方案 »

  1.   

    a.html:<input type=button value=ChangeMainLocation onclick="bChange()">
    <script>
    function bChange(){
        var lable =     parent.main.document.all.Lable1;
        if (lable.style.display=="none")
        {
          lable.style.display = "";
        }
        else
        {
          lable.style.display = "none";
        }}
    </script>
      

  2.   

    用HtmlGenericControl 控件也可以。
      

  3.   

    parent.frames["窗口名"].document.all.[lableID].style.display == 'none';
      

  4.   

    function Button1_onclick() {
    window.open('start.aspx','main')
    }function Button2_onclick() {
    parent.main.document.all.label1.style.display == 'none'
    }button1,button2都在contents中
    button1按了以后main中调入start.aspx.  start.aspx中有一个[labelid]是label1的label
    但button2按了以后页面就显示页面有错误,main中的label1不能unvisible
      

  5.   

    function Button2_onclick() {
    Response.Write("<script>parent.main.document.all.label1.style.display == 'none'</script>");
    }