ASP Programming | ASP Web Pro
  Active Server Pages Programming by ASP Web Pro

JavaScripts

START CURSOR AT FIELD

This handy little JavaScript goes inside the body tag and automatically starts the users cursor in a given form field. This script will start the cursor in the Username field:

 

<HTML><HEAD>
<TITLE>ASP Web Pro</TITLE>
</HEAD>

<BODY onLoad="Login.Username.focus()">

Please enter you Username and Password:

<form name="Login" method="post">
<table width="100%" border="0">
<tr><td><div align="right">Username:</div></td>
<td><input type="text" name="Username" size="20"></td></tr>
<tr><td width="50%"><div align="right">Password:</div></td>
<td><input type="password" name="Password" size="20"></td></tr>
</table>
<p align="center"><input type="submit" name="Submit" value="Submit"></p>
</form>

</BODY>
</HTML>

< Back to JavaScripts


 

 

Main Menu
Home
ASP Scripts
ASP Tutorials
JavaScripts
Awards
Contact Us

Email This Page

Other Resources
ASP Web Hosting
Search Engine Submission
Programming Help

 

 

 

Other ASP Web Sites

Site Map

 

Last Updated:
22 March 2010