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 Atnaujinimai Via RSS | E-mail Get updates via feedburner Get updates via twitter
Home / Coding / JavaScript & Ajax / JavaScript: Where do I Find … Pagrindinis / Kodai / JavaScript ir Ajax / JavaScript: Kur rasti ...

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:

Div properties

Div properties Div savybės

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!

Translate this post Translate this post


Related posts: Related posts:

  1. 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?
  2. JavaScript: Get anchor from URL JavaScript: Get inkaro iš URL
  3. JavaScript: Send function as a parameter to another function (callbacks) JavaScript: Siųsti funkcija kaip parametro kitos funkcijos (Atgalinės iššūkius)
  4. Javascript: How to validate email address with JavaScript? Javascript: Kaip patvirtinti elektroninio pašto adresą su "JavaScript?
  5. PHP: Get all files and folders from a directory (folder) PHP: Gauti visus failus ir aplankus iš katalogo (aplanko)

blog comments powered by Disqus Dienoraštis komentarus maitina Disqus