<a href="#" onclick="funcccc('你好');return false">你好</a><input type="text" name="T1" size="16"><script>
function funcccc(c)
{
T1.value=c;
}
</script>报什么错》

解决方案 »

  1.   

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>无标题文档</title>
    <script>
    function show(c)
    {
    form1.t1.value=c;
    }
    </script>
    </head><body>
    <form name="form1" method="post" action="">
      <p><a href="#" onClick="show('hello')">Click Me</a> </p>
      <p>
        <input type="text" name="t1">
      </p>
    </form>
    </body>
    </html>
    没有错误呀,我这里多加了一个form1
      

  2.   

    <a href="#" onclick="funcccc('你好')"><input type="text" name="T1" size="16"><script>
    function funcccc(c)
    {
     document.all("T1").value=c;
    }
    </script>