Metachecker.net
|
FontsMadeEasy.com
|
RankChecker.net
Learn Java Script Today
|
Over 5000 Free Fonts
|
Tutorials
|
Javascript Forum
|
Other Javascript Resources
|
Cheat Sheet
JavaScript Basics
Inserting Javascript
Complete Tutorial
Advance DHTML Tutorial
Script archive
Advanced Tutorials
Alert Scripts
Animation
Audio
Background Effects
Banner Ads
Browser Window
Buttons
Button Forms
Calculcators
Calendars
Clocks & Dates
Cookies
Cursor Effects
DHMTL Games
DHTML Miscellaneous
Equivalents
Forms
Games
IE4+ Scripts
IE5+ Scripts
Image Effects
Image Miscellaneous
Links & Buttons
Math Related
Messages Miscellaneous
Miscellaneous
Mouse Tricks
Navigation
Page Details
Password Protection
Pulldown Menus
Random Stuff
Scrolling
Status Bar
Text Animation
User Detail
User Info
Window Control
Form Focus
[View Sample]
Here's a helpful little JavaScript for anyone who has ever made a form and wants to have the mouse cursor pop into their first field when the website is loaded. The visitor can start typing straight away, without moving the mouse.
Insert into <HEAD>
Insert into <BODY>
<body bgcolor="#ffe4c4" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000" onLoad="self.focus();document.Form_Name.Field_Name.focus()"> <center><h1>Form Focus</h1></center> <p>Here's a helpful little script for anyone who has ever made a form and wants to have the cursor pop into their first field when the page is loaded. The visitor can start typing straight away, without moving the mouse.</p> <p>Note that if you have much introductory content before the form, meaning that the first field would not normally appear in the window without scrolling, the browser will automatically scroll down to show the field, so it may not be suitable in all cases.</p> <form name="Form_Name"> <b>Please enter a number:</b> <input type="text" name="Field_Name" size="10" maxlength="9"> </form> <p>All you need do is put<br> <kbd>onLoad="self.focus();document.Form_Name.Field_Name.focus()"</kbd> inside the <kbd><BODY></kbd> tag, where "Form_Name" is the name of your form, and "Field_Name" is the name of the first field.</p><hr>
Other Options