HTML::DOM::Event::Mouse - A Perl class for HTML DOM mouse event objects
# ...
This class provides MouseEvent objects for HTML::DOM, which objects are passed to event handlers for mouse events when they are invoked. It inherits from HTML::DOM::Event::UI.
See also those inherited from HTML::DOM::Event::UI and HTML::DOM::Event.
These are all read-only and ignore their arguments.
This represent the coordinates within the screen or window (viewport), respectively, of the mouse event.
These are booleans that indicate which modifier keys were pressed when the event occurred.
A number representing the mouse button: 0 for the left (or the right button on a left-handed mouse), 1 for the middle and 2 for the right (or left).
References a node which, though it is not the target, was involved in the event somehow. This is typically used for mouseover events and indicates the node that the mouse moved off.
mouseover
This initialises the event object. See "initEvent" in HTML::DOM::Event for more detail.
Alternative to initMouseEvent that's easier to use:
initMouseEvent
init $event type => $type, propagates_up => 1, cancellable => 1, view => $view, detail => 1, screen_x => $foo, screen_y => $bar, client_x => $baz, client_y => $oto, ctrl => $bop, alt => 0, shift => 0, meta => 0, button => 1, rel_target => $other_elem, ;
HTML::DOM
HTML::DOM::Event
HTML::DOM::Event::UI
1 POD Error
The following errors were encountered while parsing the POD:
=over without closing =back
To install HTML::DOM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::DOM
CPAN shell
perl -MCPAN -e shell install HTML::DOM
For more information on module installation, please visit the detailed CPAN module installation guide.