'htmlFor' Example : Label : Form Control JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Form Control » Label »

 

'htmlFor' Example



    
<html>
<body>
<script language="JavaScript">
    function function1() {
        alert(document.all.myLabel.htmlFor);
    }
</script>
<script id="myScript" for="myButton2" event="onclick">
    alert(myScript.htmlFor);
</script>
<p>
<label id="myLabel" for="myButton">
</label>
</p>
<button id="myButton" onclick="function1();">HTML for Label</button>
<button id="myButton2">HTML for Script</button>
</body>
</html>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Form Control
» Label