niche Posted May 22, 2012 Share Posted May 22, 2012 (edited) 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 May 22, 2012 by niche Link to comment Share on other sites More sharing options...
eTianbun Posted May 22, 2012 Share Posted May 22, 2012 No, just that button. 1 Link to comment Share on other sites More sharing options...
dsonesuk Posted May 22, 2012 Share Posted May 22, 2012 No, just showing what the current object IS, returned with function call 1 Link to comment Share on other sites More sharing options...
niche Posted May 22, 2012 Author Share Posted May 22, 2012 I understand. Thanks to CodeName and Dsonesuk. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now