Jump to content

Confirmation on "this" SOLVED with thanks in the last post


niche
 Share

Recommended Posts

This script produces an alert that says: [object HTMLButtonElement]. Is that saying I have access access to the button element as an array?

<head><script type="text/javascript">function display(el) {  alert(el);}</script></head><body><button  name="jasmine" type="button" onclick="display(this)">Send</button></body></html>

Edited by niche
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...