Phil Eaton 4/26/2022

HTML event handler attributes: down the rabbit hole

Read Original

The article details a developer's investigation into HTML event handler attributes, specifically how to access the event object when using onclick. It covers the discovery of the implicit 'event' variable in the handler's scope, the difference from the deprecated window.event, and practical JavaScript for converting form submissions to JSON POST requests.

HTML event handler attributes: down the rabbit hole

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week