Posted in Javascript onSeptember 23, 2013
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> <META NAME="Generator" CONTENT="EditPlus"> <META NAME="Author" CONTENT=""> <META NAME="Keywords" CONTENT=""> <META NAME="Description" CONTENT=""> <SCRIPT LANGUAGE="JavaScript"> <!-- function setfocus() { txt.focus(); // 或者 // document.getElementById("txt").focus(); } //--> </SCRIPT> </HEAD> <BODY onload="setfocus()"> <INPUT TYPE="text" NAME="txt"> </BODY> </HTML>
js/html光标定位的实现代码
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@