w3schools
  
HOME HTML CSS XML JAVASCRIPT ASP PHP SQL MORE...   References Examples Forum About

Input Button name Property


Button Object Reference Button Object

Definition and Usage

The name property sets or returns the name of a button.

Syntax

buttonObject.name=name


Example

Example

The following example returns the name of a button:

<html>
<body>

<form>
<input type="button" id="button1"
name="button1" value="Click Me!" />
</form>

<p>The name of the button is:
<script type="text/javascript">
x=document.getElementById('button1');
document.write(x.name);
</script>
</p>

</body>
</html>

Try it yourself »


Button Object Reference Button Object

DreamTemplate

WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Top 10 Web Hosting
UK Reseller Hosting
Web Hosting
FREE Web Hosting
Top Web Hosting
Cheap UK Web Hosting
WEB BUILDING
XML Editor – Free Trial!
FREE Flash Website
FREE Web Templates
SEO Company
EDUCATION
US Web Design Schools
HTML Certification
JavaScript Certification
XML Certification
PHP Certification
ASP Certification
STATISTICS
Browser Statistics
Browser OS
Browser Display
FLIGHT TICKETS
Find the cheapest flight
to any destination now!
SHARE THIS PAGE