-------初学小菜:关于函数调用的问题!------
请看下面代码:settimeout函数用VAR声明后执行和在ONLOAD里卖弄调用函数有区别吗?如果有,是何?
<html>
<head>
<title>title</title>
<script>
var buttonNotPressed1=setTimeout("alert('you must press ok button to continue')",3000);
function buttonNotPressed2(){
setTimeout("alert('you must press ok button to continue')",3000);
}
</script>
</head>
<body onload="openpolarbear2()">
</body>
</html>