JavaScript: Where do I Find All Properties for All HTML Elements ?
Posted on 08. Jun, 2009 by Dragos in Coding, JavaScript & Ajax
You think you’re good at JavaScript? Ok. Here’s a question that’ll test your JavaScript wisdom: How many properties does a DIV element have?
Your answer is 5? Because there is the name, id, class, style or title property. Maybe your answer is a little bit more than 5, but would you be surprised if I told you that there are more than 60 properties for the div element (62 in total, I think)? Don’t worry, me too I was surprised when I found out about it. And all these properties are there to help you better interact with your element and with the client.
Here’s a list of div properties:
I was talking about the div element, but the other elements do also have dozens of properties that you might never heard of before. Find all properties for the elements you’re interested in at Java2s.com. Good luck discovering the new possibilities of JavaScript!
Related posts:
- JavaScript: How to get the index (position within a group) of an object with jQuery?
- JavaScript: Get anchor from URL
- JavaScript: Send function as a parameter to another function (callbacks)
- Javascript: How to validate email address with JavaScript?
- PHP: Get all files and folders from a directory (folder)
-
http://adidasshoesoutlet.com Jesson
-
Murat898











































