JavaScript: Where do I Find All Properties for All HTML Elements ? JavaScript: Kur rasti Visi Ypatybės Visi HTML elementai?
Posted on 08. Posted on 08. Jun, 2009 by Dragos in Coding , JavaScript & Ajax Birželis, 2009 Dragos ir kodavimo, JavaScript ir Ajax
You think you're good at JavaScript? You think you're gerai JavaScript? Ok. Gerai. Here's a question that'll test your JavaScript wisdom: How many properties does a DIV element have? Štai klausimas, kurį galėsite išbandyti savo "JavaScript išminties: Kaip daug savybių neturi DIV elementas yra?
Your answer is 5? Jūsų atsakymas yra 5? Because there is the name, id, class, style or title property. Nes ten yra pavadinimas, numeris, klasės, stilius ar pavadinimą nuosavybė. 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)? Galbūt jūsų atsakymas yra šiek tiek daugiau nei 5, bet tai jums reikia stebėtis, jei aš jums sako, kad yra daugiau nei 60 savybių div elemento (62, iš viso, manau)? Don't worry, me too I was surprised when I found out about it. Nesijaudinkite, aš taip pat buvau nustebintas, kai aš sužinojau apie ją. And all these properties are there to help you better interact with your element and with the client. Ir visos šios savybės yra tam, kad padėtų jums geriau bendrauti su savo elementą ir su klientu.
Here's a list of div properties: Štai div savybių sąrašas:
I was talking about the div element, but the other elements do also have dozens of properties that you might never heard of before. Aš kalbu apie div elemento, bet ir kitus elementus, tai taip pat turi daugybę savybių, kurios galbūt niekada išgirsti ir anksčiau. Find all properties for the elements you're interested in at Java2s.com . Rasti visus elementus jus domina ne Java2s.com savybės. Good luck discovering the new possibilities of JavaScript! Sėkmės atrasti naujas galimybes JavaScript!
Related posts: Related posts:
- JavaScript: How to get the index (position within a group) of an object with jQuery? JavaScript: Kaip gauti indeksą (pozicijos grupės) su jQuery objektas?
- JavaScript: Get anchor from URL JavaScript: Get inkaro iš URL
- JavaScript: Send function as a parameter to another function (callbacks) JavaScript: Siųsti funkcija kaip parametro kitos funkcijos (Atgalinės iššūkius)
- Javascript: How to validate email address with JavaScript? Javascript: Kaip patvirtinti elektroninio pašto adresą su "JavaScript?
- PHP: Get all files and folders from a directory (folder) PHP: Gauti visus failus ir aplankus iš katalogo (aplanko)













































