JavaScript: Where do I Find All Properties for All HTML Elements ? JavaScript: Dove posso trovare tutte le proprietà di tutti gli elementi HTML?
Posted on 08. Posted on 08. Jun, 2009 by Dragos in Coding , JavaScript & Ajax Giugno, 2009 da Dragos in Coding, JavaScript e Ajax
You think you're good at JavaScript? Pensi di essere bravo a JavaScript? Ok. Ok. Here's a question that'll test your JavaScript wisdom: How many properties does a DIV element have? Ecco una domanda che ci prova la vostra saggezza JavaScript: Come molte proprietà fa un elemento DIV hanno?
Your answer is 5? La tua risposta è 5? Because there is the name, id, class, style or title property. Perché c'è il nome, l'ID, la classe, lo stile o la proprietà del titolo. 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)? Forse la risposta è un po 'più di 5, ma sareste sorpresi se ti ho detto che ci sono più di 60 immobili per l'elemento div (62 in totale, credo)? Don't worry, me too I was surprised when I found out about it. Non ti preoccupare, anch'io sono rimasto sorpreso quando ho scoperto che su di esso. And all these properties are there to help you better interact with your element and with the client. E tutte queste proprietà sono lì per aiutarti a meglio interagire con il vostro elemento e con il cliente.
Here's a list of div properties: Ecco un elenco di proprietà 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. Stavo parlando l'elemento div, ma gli altri elementi si hanno anche decine di immobili che non sarebbe mai sentito parlare prima. Find all properties for the elements you're interested in at Java2s.com . Trova tutte le proprietà per gli elementi che ti interessa a Java2s.com. Good luck discovering the new possibilities of JavaScript! Buona fortuna per scoprire le nuove possibilità di JavaScript!
Related posts: Related posts:
- JavaScript: How to get the index (position within a group) of an object with jQuery? JavaScript: Come ottenere l'indice (posizione all'interno di un gruppo) di un oggetto con jQuery?
- JavaScript: Get anchor from URL JavaScript: Get ancora da URL
- JavaScript: Send function as a parameter to another function (callbacks) JavaScript: Invia funzione come parametro a un'altra funzione (callback)
- Javascript: How to validate email address with JavaScript? Javascript: Come validare indirizzo email con JavaScript?
- PHP: Get all files and folders from a directory (folder) PHP: Ottieni tutti i file e le cartelle da una directory (cartella)













































