页面加载init()函数:
<body onload="init()">
使id为yesbutton的按钮获得焦点
<script language ="javascript"> function init(){ var ctrl=document.getElementById("yesbutton"); ctrl.focus(); } </script>