Web Hosting Directory | Web Hosting Resources | Webmaster Resources | Domain Tools | Search Engine Marketing | Forums
  Signup
Today: 1,209   Yesterday: 1,015   Max: 1,872   Total: 464,262   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 <BUTTON ...>
NAME = "text string"

NAME sets the name of the button element. If the button is a submit button then the name and the value should 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/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:



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.