Web Hosting Directory | Web Hosting Resources | Webmaster Resources | Domain Tools | Search Engine Marketing | Forums
  Signup
Today: 1,240   Yesterday: 1,015   Max: 1,872   Total: 464,293   Current Users : 21 (Member 0) 
DOMAIN TOOLS

WEBMASTER TOOLS

RELATED ARTICLES

SUBMIT AN ARTICLE

Write for us and get publicity, link to your website, and best of all get paid. Please visit our writers page for details.


LINK TO US

Link to us and earn points for each visitor you bring to us. Please visit our link partner page for details.

 

Attribute for <INPUT ...>
CHECKED

CHECKED indicates that a radio button or checkbox should be on when the form first loads.

this code produces this
<FORM ACTION="../cgi-bin/mycgi.pl">

<INPUT TYPE=CHECKBOX NAME="maillist" CHECKED>Yes! Put me on the list!

<P><INPUT TYPE=SUBMIT VALUE="submit">
</FORM>
Yes! Put me on the list!

<FORM ACTION="../cgi-bin/mycgi.pl">

What color would you like?<BR>
<INPUT TYPE=RADIO NAME="color" VALUE="green"         >Green<BR>
<INPUT TYPE=RADIO NAME="color" VALUE="red"           >Red<BR>
<INPUT TYPE=RADIO NAME="color" VALUE="blue"  CHECKED >Blue<BR>
<INPUT TYPE=RADIO NAME="color" VALUE="brown"         >Brown


<P><INPUT TYPE=SUBMIT VALUE="submit">
</FORM>
What color would you like?
Green
Red
Blue
Brown

Checkboxes are off by default. There is no default for which radio button is on when the form loads; most browsers have none on, some put the first one on.



Copyright 1997-2002 Idocs, Inc. Written by Miko Sullivan.

 
 
 
What is your major source of website traffic?
 
 
 
 
 
 

ADVERTISEMENT

 
Cheap Web HostingBudget Web HostingEcommerce Web Hosting
Link to UsLink ExchangeAdvertisePrivacy PolicyTerms Of ServiceAbout UsContact UsSitemap
Copyright © 2006 - 2008 Broadband Media, Inc. All rights reserved.