HTML::O...Listener(3)

πŸ“¦ version 0.6.0, in alpine 3.24

πŸ’… 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 πŸ”­

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