为什么我的document.onready没作用?
想在网页加载完成后, 得到form.
<html><head>
<meta http-equiv="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Content-Language" content="zh-cn"/>
<meta http-equiv="Content-Type" content="text/html; charset=GBK"/><script type="text/javascript">function detect() {

//fill
var aForm = document.forms[0];
alert(aForm);
}document.onready = detect();</script>
</head><body><form action="">
<input type="hidden" name="act" value=""/>
</form></body></html>