HTML DOM id Property
Complete Submit Object Reference
Definition and Usage
The id property sets or returns the id of the submit button.
Syntax
Example
The following example gets the id of the submit button:
<html>
<head>
<script type="text/javascript">
function alertId()
{
alert(document.getElementById("submit1").id)
}
</script>
</head>
<body>
<form>
<input type="submit" id="submit1" onclick="alertId()" />
</form>
</body>
</html>
|
Try-It-Yourself Demos
Alert id,
type, and value of a submit button + disable button
Complete Submit Object Reference
Want To Be A Web Master?
If you want to be a Web Master, you will have to host your web site with an ISP (Internet Service Provider).
MaximumASP offers seven different configurations of dedicated servers to meet your Windows and .NET hosting needs.
Hosted on our multi-tiered Enterprise Class network, these servers provide the performance, security and reliability
you need to host your high end web sites and applications.
Visit MaximumASP
|