txtt.style.display = "none";  
Composition.style.display = "";

解决方案 »

  1.   

    不错,就是这样的,javascript的功能很大,但是细节一不注意就出错。
      

  2.   

    在IFRAME前面加<DIV ID="Composition">......然后
    txtt.style.display = "none";  
    Composition.style.display = "";
      

  3.   

    <html>
    <head>
    <title></title>
    <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
    <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
    <script language="javascript">
    function hideElement(){
    if (myInput.style.display=="none")
    myInput.style.display="";
    else 
    myInput.style.display= "none";
    }
    </script>
    </head>
    <body>
    <INPUT id="myInput" type="text" name="pk"><br>
    <INPUT id="Button1" type="button" value="Button" name="Button1" onclick="hideElement()">
    </body>
    </html>