HTML::O...Listener(3)
π HTML::Object::EventListener(3) π
okay bestie, you're on the HTML::Object::EventListener(3) page β the User Contributed Perl Documentation one, fr fr. This is the HTML Object Event Listener Class, and we're gonna go through it together. no cap.
π NAME π
HTML::Object::EventListener - HTML Object Event Listener Class
πΈ SYNOPSIS πΈ
use HTML::Object::EventListener;
my $handler = HTML::Object::EventListener->new ||
die( HTML::Object::EventListener->error, "\n" );
π¦ VERSION π¦
v0.2.0 β iconic, we love a version number.
β¨ DESCRIPTION β¨
This module implements an HTML::Object event listener. The addEventListener method instantiates it. That's the whole vibe.
π οΈ CONSTRUCTOR π οΈ
π± new π±
Give new a hash or a hash reference of options, and it instantiates a brand-new event listener and returns the object to you. It takes the same options as the methods listed below. Slay.
π§ METHODS π§
π capture π
Sets or gets the boolean capture value for this event listener.
π» code π»
Same as handleEvent β literally the same job, different name.
π§© element π§©
Sets or gets the HTML::Object::Element object this event listener is attached to.
π§ handleEvent π§
Set or get an anonymous subroutine or a reference to a subroutine that gets called whenever an event of the specified type occurs. Main character behavior, honestly.
ποΈ options ποΈ
Set or get a hash reference of options for this event handler. Those options are the same as the ones passed to addEventListener in HTML::Object::EventTarget. Periodt.
π§Ή remove π§Ή
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 sets an error.
π·οΈ type π·οΈ
Set or get the type of event this object is for.
π AUTHOR π
Jacques Deguest β <jack@deguest.jp>
π SEE ALSO π
HTML::Object::EventTargetHTML::Object::EventHTML::Object::EventListener- Mozilla documentation β
<https://developer.mozilla.org/en-US/docs/Web/Events/Event_handlers>
π COPYRIGHT & LICENSE π
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.
mwah π bestie, this page came from perl v5.42.2 and is dated 2026-02-15. Love that for us.
π¦ where this page comes from
- alpine 3.24: perl-html-object-doc 0.6.0-r1 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms