HTML DOM alt Property
Complete Reset Object Reference
Definition and Usage
The alt property sets or returns an alternate text to display if a browser
does not support reset buttons.
Syntax
resetObject.alt=alternate_text
|
Example
The following example returns the alt text for a reset button:
<html>
<body>
<form>
<input type="reset" alt="Reset button" id="reset1" />
</form>
<p>The alt text for the reset button is:
<script type="text/javascript">
x=document.getElementById('reset1');
document.write(x.alt);
</script></p>
</body>
</html>
|
Try-It-Yourself Demos
Return the
alt text for a reset button
Complete Reset Object Reference
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|