behavior: button

Standard button behavior

Elements

that have this behavior applied by default (see master style sheet):

  • <button></button>
  • <input type=“button” />
  • <widget type=“button”></widget>
  • <input type=“reset” />
  • <input type=“submit” />

Attributes

that this behavior knows about:

  • value=“caption” - caption that will appear on the button 1)

Events

Together with the standard set of events (mouse, keyboard, focus) behavior: button generates:

  • BUTTON_CLICK event - mouse down/up or spacebar key click when button is in focus. Posted (asynchronous) event
  • BUTTON_PRESS event - mouse down or spacebar key down when button is in focus. Synchronous event.
1) <button> element uses its content as a caption, example:
  <button><img src=.../> and some text</botton>
will be rendered as a button with the image and text inside.
h-smile/built-in-behaviors/button.txt · Last modified: 2007/09/21 22:38 (external edit)
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0