HTML event handler attributes: down the rabbit hole
Read OriginalThe 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.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser