[[php_dhtml:events]]
 

Events

You can receive events from the window (using dhtml_get_event) when an event occur in the HTML page. For some events to be received you have to declare it for a particular HTML id or for a class of HTML elements.

name value extra declaration needed ? explanation
init First event fired, use it to customize your window
event_ok Called when the ‘Return’ key is pressed
event_cancel Called when the ‘Esc’ key is pressed
event_close Called when the user try to close the window by any way1)
request Called when a request is done (a click on a link for exemple)
page_load Called when a page is loadading
page_unload Called when a page is loadading
timer Called when a timer expire
event_click X Click event
event_dblclick X Double click event
event_ctxmenu X Context-menu event (rigth-click most of the time)
event_keypress X Key press event
event_keydown X Key down event
event_keyup X Key up event
event_mouseout X Mouse out event
event_mouseover X Mouse over event
event_mousewheel X Mouse wheel event
event_focusin X Focus in event
event_focusout X Focuse out event
1) the x button, Alt-F4 or dbl-click on the window icon
 
  php_dhtml/events.txt · Last modified: 2004/11/21 18:22
 
Recent changes RSS feed Powered by PHP Driven by DokuWiki