'accessKey' Example : Access Key « Event « JavaScript DHTML






'accessKey' Example

    
<html>
<body>
<input type="text" 
       size="40" 
       id="myButton" 
       accesskey="Z" 
       value="Press Alt + Z to bring me into focus">
<button onclick="myButton.accessKey='N';">Change Access Key to N</button>
</body>
</html> 

    
      
      








Related examples in the same category