<Form Action="" Name="myform" Method="GET"> message: <br></Form>你把form去掉就可以了,
可能是Form隔了一层

解决方案 »

  1.   

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>form</title>
    <script type="text/javascript">
    function decodeMessage(){
        //alert("oj");
        document.getElementById("Content_div").innerHTML="HelloWorld";
    }
    </script>
    </head><body>
    <Form Action="" Name="myform" Method="GET"> message: <br>
    <div id="Content_div"></div>
    <Input Type="text" Name="inputbox" Value="" > <P>
    <Input Type="button" Name="button" Value="Transform" onclick="decodeMessage()" >
    </Form></body>
    </html>
      

  2.   

    javascript 是大小写敏感的, 
    document.getElementById("Content_div").innerHTML 
    document.getElementById("Content_div").innerText 这两个你是要用哪个?
      

  3.   

    楼上的人都说了,的确是要写成innerHTML
      

  4.   

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>form</title>
    <script type="text/javascript">
    function decodeMessage(){
        document.getElementById("Content_div").innerHTML="HelloWorld";
    }
    </script>
    </head><body>
    <Form Action="" Name="myform" Method="GET"> message: <br>
    <Input Type="text" Name="inputbox" Value="" > <P>
    <Input Type="button" Name="button" Value="Transform" onClick="decodeMessage()" >
    <div id="Content_div"></div>
    </Form></body>
    </html>运行结果:
    HelloWorld