HTML::Object::EventListener - HTML Object Event Listener Class
use HTML::Object::EventListener; my $handler = HTML::Object::EventListener->new || die( HTML::Object::EventListener->error, "\n" );
v0.2.0
This module implements an HTML::Object event listener. It is instantiated by the addEventListener method
Provided with an hash or hash reference of options and this will instantiate a new even listener and return the object.
It takes the same options as the methods listed below.
Sets or get the capture boolean value for this event listener.
capture
Same as "handleEvent"
Sets or gets the HTML::Object::Element object to which is attached this event listener.
Set or get an anonymous subroutine or a reference to a subroutine that is called whenever an event of the specified type occurs.
Set or get an hash reference of options for this event handler. Those options are the same as the ones passed to "addEventListener" in HTML::Object::EventTarget
A convenient alternative method to "removeEventListener" in HTML::Object::EventTarget. It takes no parameter and calls "removeEventListener" in HTML::Object::EventTarget with all the necessary parameters, hassle free.
It returns the current event listener object upon success, and undef upon error and then set an error
undef
Set or get the type of event this object is for.
Jacques Deguest <jack@deguest.jp>
HTML::Object::EventTarget, HTML::Object::Event, HTML::Object::EventListener
Mozilla documentation
Copyright(c) 2021 DEGUEST Pte. Ltd.
All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install HTML::Object, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::Object
CPAN shell
perl -MCPAN -e shell install HTML::Object
For more information on module installation, please visit the detailed CPAN module installation guide.