Text Links Ads : Marketing Tips Store : Search Engine Optimization Strategies
WebPosition Gold Pro : Domain Registration Bank : Optilink Software : GoDefy
Mike's Marketing Tools : Mike's Ecommerce Software : Text Links Guide
 
Web HTML-HTML.com
You are here: HTML Codes > Forms > <BUTTON ...>

Attribute for <BUTTON ...>
NAME ="text string"

NAME sets the name of the button element. If the button is a submit button then the name and the valueshould be sent to the server. Unfortunately MSIE did not properly implement this feature so NAME is of limited value.

NAME can also be used in scripts. The button can be refered to by using its name as a property of the form. For example, the following code creates a button named go that has blinking text:

<FORM ACTION="../cgi-bin/html/mycgi.pl" 
 METHOD=POST 
 NAME="myform">
email: <INPUT NAME="email">
<BUTTON NAME="go" TYPE="submit"><STRONG>Go!</STRONG></BUTTON> 
</FORM>
<SCRIPT TYPE="text/javascript">
<!--
function blinker()
{
if (document.forms.myform.go.style.color == 'blue')
 document.forms.myform.go.style.color='red';
else
 document.forms.myform.go.style.color='blue';
setTimeout('blinker()',500);
}
blinker()
//-->
</SCRIPT>

which gives us

email:

<BUTTON VALUE="..."> >>>

Copyright © 2002-8 Art Dacor USA LLC. All Rights Reserved.
3727 West Magnolia Blvd #489, Burbank, CA, 91505, USA.
www.HTML-HTML.com