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 ACTUALITZACIONS VIA RSS | Email Get updates via feedburner Get updates via twitter
Home / Coding / JavaScript & Ajax / JavaScript: Where do I Find … Inici / codificació / JavaScript i Ajax / JavaScript: On puc trobar ...

JavaScript: Where do I Find All Properties for All HTML Elements ? JavaScript: On puc trobar totes les propietats de tots els elements HTML?

Posted on 08. Publicat el dia 08. Jun, 2009 by Dragos in Coding , JavaScript & Ajax Juny de 2009, per Dragos a la codificació, JavaScript i Ajax

You think you're good at JavaScript? Creus que ets bo en JavaScript? Ok. Val. Here's a question that'll test your JavaScript wisdom: How many properties does a DIV element have? Aquí hi ha una pregunta que va a provar la seva saviesa JavaScript: Quantes propietats té un element DIV té?

Your answer is 5? La seva resposta és 5? Because there is the name, id, class, style or title property. Com que és el nom, ID, classe, estil o drets de propietat. 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)? Potser la teva resposta és una mica més de 5, però ¿li sorprendria si li digués que hi ha més de 60 propietats per l'element div (62 en total, crec)? Don't worry, me too I was surprised when I found out about it. No et preocupis, jo també em vaig quedar sorprès quan vaig saber d'ella. And all these properties are there to help you better interact with your element and with the client. I totes aquestes propietats estan aquí per ajudar a interactuar amb els seus elements i amb el client.

Here's a list of div properties: Heus aquí una llista de propietats div:

Div properties

Div properties Propietats de 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. Jo estava parlant de l'element div, però els altres elements tinguin també dotzenes de propietats que pot ser que mai havia sentit abans. Find all properties for the elements you're interested in at Java2s.com . Trobeu totes les propietats dels elements que li interessa en Java2s.com. Good luck discovering the new possibilities of JavaScript! Bona sort de descobrir les noves possibilitats de JavaScript!

Translate this post Demanar aquest missatge


Related posts: Llocs relacionats amb:

  1. JavaScript: How to get the index (position within a group) of an object with jQuery? JavaScript: Com obtenir l'índex (posició dins d'un grup) d'un objecte amb jQuery?
  2. JavaScript: Get anchor from URL JavaScript: Obtenir l'àncora de l'URL
  3. JavaScript: Send function as a parameter to another function (callbacks) JavaScript: Enviar funcionar com un paràmetre a una altra funció (callbacks)
  4. Javascript: How to validate email address with JavaScript? Javascript: Com validar l'adreça de correu electrònic amb JavaScript?
  5. PHP: Get all files and folders from a directory (folder) PHP: Obtenir tots els fitxers i carpetes d'un directori (carpeta)

    blog comments powered by Disqus blog alimentat per Disqus