打开网页光标就自动定位到指定输入框

<body onload=document.f.wd.focus()> ,f是form的name,wd是文本框的name