hyTags
HomeHome DocumentationDocumentation

event-get-target

Gets the target element that triggered the event.
Parameter
Type
Description
self
Event
The event object.
return
element
The HTML element that triggered the event, or nil if not available.
Test Case:Get event target
    <div></div>
    
    <event-new name="test">
    <event-get-target>
    <bool-true>
    <assert-true>
    
    👆 Try to change something!
  • Test succeeded Test failed