<script type="text/javascript" src="file:///F|/资料/32543jQuery权威指南源代码/slnJQuery/Ch1/Jscript/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
function changePage(){
var f =document.getElementById("queryConditionForm");
var str=document.queryConditionForm.event_submit_do_query.value;
alert(str);
}
</script>
</head>
<body onload="changePage()">
<button type="submit" id="ls" name="as" onClick="changePage(0)" value="sdjflsdjf" value="搜索" width="100px" height="40px" />
<form method="post" name="queryConditionForm" id="queryConditionForm" action="">
<input id="submitNameId" type="hidden" name="event_submit_do_query" value="1"/>
style="display:none;" />
</form> </body>
</html>
我运行的时候报 var str=document.queryConditionForm.event_submit_do_query.value;为空或不是对象,请问一下是怎么回事?我用的是IE8