'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>