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 FRISSÍTÉSEK VIA RSS | E-mail Get updates via feedburner Get updates via twitter
Home / Coding / JavaScript & Ajax / JavaScript: Where do I Find … Home / Kódolás / JavaScript és Ajax / JavaScript: Hol ...

JavaScript: Where do I Find All Properties for All HTML Elements ? JavaScript: Hol találok Minden tulajdonság minden HTML elemek?

Posted on 08. Posted on 08. Jun, 2009 by Dragos in Coding , JavaScript & Ajax Június, 2009 Dragos ben Kódolás, JavaScript és Ajax

You think you're good at JavaScript? Azt hiszed, te jó vagy JavaScript? Ok. Ok. Here's a question that'll test your JavaScript wisdom: How many properties does a DIV element have? Itt egy kérdés, hogy próbáljuk a JavaScript bölcsesség: Hány tulajdonságok kerül egy DIV elem van?

Your answer is 5? A válasz 5? Because there is the name, id, class, style or title property. Mert ott van a neve, id, class, stílus vagy cím tulajdon. 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)? Lehet, hogy a válasz egy kicsit több, mint 5, de lennél meglepve, ha azt mondanám, hogy több mint 60 tulajdonságainál a div elem (62 összesen, azt hiszem)? Don't worry, me too I was surprised when I found out about it. Ne aggódj, én is voltam lepve, amikor megtudtam. And all these properties are there to help you better interact with your element and with the client. És mindezen tulajdonságok vannak, hogy segít jobban hatnak ezek a elem és az ügyfél.

Here's a list of div properties: Itt egy lista a div tulajdonságai:

Div properties

Div properties Div tulajdonságai

I was talking about the div element, but the other elements do also have dozens of properties that you might never heard of before. Én beszélek a div elemet, de a többi elem is van több tucat tulajdonságokkal, amit talán soha nem hallottam azelőtt. Find all properties for the elements you're interested in at Java2s.com . Megtalálja az összes tulajdonságait elemek you're érdekel a Java2s.com. Good luck discovering the new possibilities of JavaScript! Sok szerencsét felfedezése új lehetőségeket a 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: Hogyan juthat az index (position csoportján belül) egy objektum jQuery?
  2. JavaScript: Get anchor from URL JavaScript: Get horgony az URL-ből
  3. JavaScript: Send function as a parameter to another function (callbacks) JavaScript: Send függvény paraméterként egy másik funkció (visszahívások)
  4. Javascript: How to validate email address with JavaScript? Javascript: How to validate e-mail címét a JavaScript?
  5. PHP: Get all files and folders from a directory (folder) PHP: Vedd meg a fájlok és mappák egy könyvtár (mappa)

    blog comments powered by Disqus iPhone Disqus szerint