This is a translated page. The original can be found here: http://iwebdevel.com/2009/06/08/javascript-where-do-i-find-all-properties-for-all-html-elements/
UPDATES VIA RSS | Email Actualizacións Via RSS | Email Get updates via feedburner Get updates via twitter
Home / Coding / JavaScript & Ajax / JavaScript: Where do I Find … Home / Codificación / JavaScript e Ajax / JavaScript: Onde podo atopar ...

JavaScript: Where do I Find All Properties for All HTML Elements ? JavaScript: Onde podo atopar todas as propiedades para todos os elementos HTML?

Posted on 08. Posta en 08. Jun, 2009 by Dragos in Coding , JavaScript & Ajax Xuño de 2009 por Dragos na Codificación, JavaScript e Ajax

You think you're good at JavaScript? Pensas que é bo en JavaScript? Ok. Ok Here's a question that'll test your JavaScript wisdom: How many properties does a DIV element have? Aquí hai unha cuestión que vai probar a súa sabedoría JavaScript: Como moitas propiedades non teñen un elemento DIV?

Your answer is 5? A súa resposta é 5? Because there is the name, id, class, style or title property. Porque non hai o nome, id, clase, estilo ou título de propiedade. 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)? Quizais a súa resposta é un pouco máis de 5, pero quedaría sorprendido se lle dixo que hai máis de 60 propiedades do elemento div (62 en total, eu creo)? Don't worry, me too I was surprised when I found out about it. Non te preocupes, eu tamén quedei sorprendido cando descubrín sobre el. And all these properties are there to help you better interact with your element and with the client. E todas esas propiedades están alí para axudar a interactuar mellor co seu elemento e co cliente.

Here's a list of div properties: Aquí está a lista de propiedades p:

Div properties

Div properties Propiedades Div.

I was talking about the div element, but the other elements do also have dozens of properties that you might never heard of before. Eu estaba falando sobre o elemento p, pero os outros elementos que tamén ten decenas de propiedades que quizais nunca escoitou falar antes. Find all properties for the elements you're interested in at Java2s.com . Buscar todas as propiedades dos elementos que vostede está interesado en Java2s.com. Good luck discovering the new possibilities of JavaScript! Boa sorte a descubrir novas posibilidades de JavaScript!

Translate this post Traducir esta post


Related posts: Related posts:

  1. JavaScript: How to get the index (position within a group) of an object with jQuery? JavaScript: Como obter o índice (posición dentro dun grupo) dun obxecto con jQuery?
  2. JavaScript: Get anchor from URL JavaScript: Get Referencia de URL
  3. JavaScript: Send function as a parameter to another function (callbacks) JavaScript: Enviar funcionar como un parámetro para outra función (callbacks)
  4. Javascript: How to validate email address with JavaScript? Javascript: Como validar enderezo de correo-e JavaScript?
  5. PHP: Get all files and folders from a directory (folder) PHP: Pega todos os arquivos e directorios dun directorio (carpeta)

    blog comments powered by Disqus blog comments powered by Disqus