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 Posodobitev prek RSS | Email Get updates via feedburner Get updates via twitter
Home / Coding / JavaScript & Ajax / JavaScript: Where do I Find … Domov / Coding / JavaScript in Ajax / JavaScript: Kje lahko najdem ...

JavaScript: Where do I Find All Properties for All HTML Elements ? JavaScript: Kam Najdi vse lastnosti za vse elemente HTML?

Posted on 08. Objavljeno dne 08. Jun, 2009 by Dragos in Coding , JavaScript & Ajax Junij 2009, ki ga Dragos v Coding, JavaScript in Ajax

You think you're good at JavaScript? Misliš, da si dober v JavaScript? Ok. Okej. Here's a question that'll test your JavaScript wisdom: How many properties does a DIV element have? Tukaj je vprašanje, ki bo vaš test JavaScript modrost: Koliko lastnosti pa so element DIV?

Your answer is 5? Vaš odgovor je 5? Because there is the name, id, class, style or title property. Ker je ime, id, razred, slog ali premoženje naslov. 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)? Morda je vaš odgovor malo več kot 5, vendar bi se vam presenečen, če bi ti povedal, da obstaja več kot 60 lastnosti div element (62 v celoti, mislim)? Don't worry, me too I was surprised when I found out about it. Ne skrbi, tudi jaz sem bil presenečen, ko sem izvedel o tem. And all these properties are there to help you better interact with your element and with the client. In vse te lastnosti so tam, da vam pomaga bolje interakcijo z vašim element in s stranko.

Here's a list of div properties: Tukaj je seznam div lastnosti:

Div properties

Div properties Div lastnosti

I was talking about the div element, but the other elements do also have dozens of properties that you might never heard of before. Govoril sem o div element, pa drugi elementi pa imajo tudi več deset lastnosti, ki nikoli ne bi slišal prej. Find all properties for the elements you're interested in at Java2s.com . Poišči vse lastnosti za elemente, ki vas zanima na Java2s.com. Good luck discovering the new possibilities of JavaScript! Good luck odkrivanju novih možnosti JavaScript!

Translate this post Prevedi to post


Related posts: Podobni objav:

  1. JavaScript: How to get the index (position within a group) of an object with jQuery? JavaScript: Kako indeks (položaj v skupini) predmeta s jQuery?
  2. JavaScript: Get anchor from URL JavaScript: Get sidro iz URL-ja
  3. JavaScript: Send function as a parameter to another function (callbacks) JavaScript: Pošljite funkcijo kot parameter na drugo delovno mesto (callbacks)
  4. Javascript: How to validate email address with JavaScript? Javascript: kako potrditi e-naslov z JavaScript?
  5. PHP: Get all files and folders from a directory (folder) PHP: Get vse datoteke in mape iz imenika (mape)

    blog comments powered by Disqus blog comments powered by Disqus