You are viewing information archived from Mozilla.org on 2015-08-05.

Verify that script functionality is keyboard accessible.


This tests the ONCLICK attribute with ONKEYPRESS attribute.    
Click on the link or Focus the mose on this link and then press down on a key.
And a Javascript alert dialog box will display with the following message:
'Clicked!' if the action is clicking or
'Key was pressed!' if the action is pressing a key.








Click on this link or Focus the mouse on this link and then press down on a key