日期:2014-05-18  浏览次数:20661 次

javascript 的代码没有起作用
<HTML>
<head>

<title> Text   Field   Events </title>

<script   language= "JavaScript ">

<!--   hide   me

function   writeIt(the_word)

{

var   word_with_return   =   the_word   +   "\n ";

window.document.first_form.the_textarea.value   +=word_with_return;

}

//   show   me   -->

</script>

</head>

<BODY>
<form>
<input   type= "text "   name= "first_text "   onFocus= "writeIt( 'focus '); "   onBlur= "writeIt( 'blur '); "   onChange= "writeIt( 'change '); ">
</form>
</BODY>
</HTML>

为什么我的javascript代码没有反应?


------解决方案--------------------
你的the_textarea在哪儿?