命题 
"这个myaa如果是hidden,value就不能传"这个是错误的.

解决方案 »

  1.   

    我的意思是<input type="hidden" name="myaa">
      

  2.   

    应该可以,试试:main.htm:<body>
     
     <iframe  width="300"  height="50" src="child.htm"></iframe>
     <form name =form> 
     <input name=myaa type =hidden value="a"></form>
    </body>child.htm:<script>
    parent.document.form.myaa.value="shyslysky"
    alert(parent.document.form.myaa.value)
    </script>
      

  3.   

    hidden的value可以传~~~e.g.:<form name="form1" method="post" action="">
      <input type="hidden" name="hhh" value="哈哈哈">
      <input type="button" name="Submit" value="出来" onClick="javascript:document.form1.ttt.value=document.form1.hhh.value">
      <input type="text" name="ttt">
    </form>
      

  4.   

    hidden和text一样,可以传。<body>
     <form name =form> 
     <input name=myHidden type =hidden value="a">
     </form>
    </body>child.htm:<script>
    alert(document.form.myHidden.value);
    alert(document.all.myHidden.value)</script>
      

  5.   

    parent.document.form.myaa.value="aa"
    改成
    parent.document.getElementById("myaa").value//试试。。(但是要确保只一个名为myaa的)
      

  6.   

    parent.document.all.myaa.value="aa"
      

  7.   

    是不是 “myaa”有重名的?,要不然应该可以
      

  8.   

    建议用document.getElementById("")来处理
    并且每个对象都 赋name 和 id(text等可以赋一样的值)。