<form name="forma">
<input type="text" name="a" value="hello!!!!">
<input type="text" name="b" >
<input type="button" name="btn" value="click" onclick="document.all.data.innerText='Hello!...'">
<font id="data" > ???? </font>
</form>

解决方案 »

  1.   

    function fillin()
    {
        document.forma.b.value=document.forma.a.value;
        document.all.data.innerText = "hello!!!!";
    }
      

  2.   

    <script language="javascript">
    function fillin()
    {
        document.forma.b.value=document.forma.a.value;
        document.getElementById('data').innerHTML=document.forma.a.value;
    }
    </script>
    <form name="forma">
    <input type="text" name="a" value="hello!!!!">
    <input type="text" name="b" >
    <input type="button" name="btn" value="click" onclick="fillin();">
    <font id="data" > ???? </font>
    </form>