HTML Element Reference

"button" - html element

  • This element defines a submit button, reset button, or push button.
  • Starttag <button> is Required and endtag </button> is Required
  • You can also use 'input' to specify these buttons, but the this element allows richer labels, including images and emphasis.
  • Browsers that support the button - element : Internet Explorer Mozilla Firefox Opera Google Chrome Apple Safari

Attributes:
accesskey , class , dir , disabled , id , lang , name , style , tabindex , title , type , value

Attribute "accesskey" value(s): a character as the accesskey
  • Assigns an access key to an element. Pressing an access key assigned to an element gives focus to the element. Will move focus to the button element and depending on the browser execute any action related to the button.
  • The action that occurs when an element receives focus depends on the element.
  • The key combination that activates the link to which the accesskey is applied varies depending on the platform and browser combination.
These are for the windows platform:
Browser accesskey usage Remarks
Shift + Alt + accesskey Set the focus on the element and execute any link (a) if exist.
Alt + accesskey Set the focus on the element. Press enter to execute any link.
Shift + escape + accesskey Shift + escape gives you a list of possible accesskey related to the page.
Shift + Alt + accesskey Set the focus on the element and execute any link (a) if exist.
Shift + Alt + accesskey Set the focus on the element and execute any link (a) if exist.
Shift + Alt + accesskey Set the focus on the element and execute any link (a) if exist.
Shift + Alt + accesskey Set the focus on the element and execute any link (a) if exist.

Attribute "accesskey" example:
<html>
 <body>
   <form  action="http://www.yahoo.com">
     <button accesskey="X" title="Visit www.yahoo.com"
      onclick="if (document.all)
               document.all.tags('form')[0].submit();
               else  document.form[0].submit();" >
       Search</button>
  </form>
 </body>
</html>



© 2010 by Finnesand Data. All rights reserved.
This site aims to provide FREE programming training and technics.
Finnesand Data as site owner gives no warranty for the correctness in the pages or source codes.
The risk of using this web-site pages or any program codes from this website is entirely at the individual user.