Courtesy
of
Web-Source.net
Flashing Cursor in
Form on Load
You can set up your forms so that when the page loads your visitor's
cursor will be flashing within your form.
Place the following code witin your
<BODY> tag. This code tells the browser to place the cursor within
the "customer" form in the "email" text box.
<body
onLoad="focus();customer.email.focus()"> |
The "customer" text indicated in
red, represents the name of your form. The name attribute should be added
to your form like this:
You can change the name to whatever
you'd like. However, make sure you also change it within your <BODY>
tag as well, as they must be the same.
The "email" text indicated in red, represents the name of your form element.
The <input> attribute should be written like this:
<input
type="text" name="email"> |
You can change the "email" name to
whatever you'd like. However, make sure you also change it within your
<BODY> tag as well, as they must be the same.
Copyright © Shelley Lowery
2002-2003
Web Design Tips is an excerpt from
Web Design
Mastery - An Internet Marketers Copy & Paste Reference Guide.
Learn how to design a professional web site in the easiest possible fashion
-- with hundreds of copy & paste codes.
|