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 UPDATES VIA RSS | E-pasts Get updates via feedburner Get updates via twitter
Home / Coding / JavaScript & Ajax / JavaScript: Where do I Find … Home / kodēšanas / JavaScript un Ajax / JavaScript: Kur es varu atrast ...

JavaScript: Where do I Find All Properties for All HTML Elements ? JavaScript: Kur es varu atrast visas Properties visiem HTML elementiem?

Posted on 08. Posted on 08. Jun, 2009 by Dragos in Coding , JavaScript & Ajax Jun, 2009 by Dragos in Kodēšana, JavaScript un Ajax

You think you're good at JavaScript? Jūs domājat, ka esat laba JavaScript? Ok. Labi. Here's a question that'll test your JavaScript wisdom: How many properties does a DIV element have? Lūk jautājums, kas būs pārbaude JavaScript gudrība: Cik daudzas īpašības, tas DIV elements ir?

Your answer is 5? Jūsu atbilde ir 5? Because there is the name, id, class, style or title property. Jo ir vārds, id, klase, stila vai nosaukumu īpašumu. 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)? Varbūt Jūsu atbilde ir nedaudz vairāk nekā 5, bet jūs būtu pārsteigts, ja es tev teicu, ka ir vairāk nekā 60 īpašības div elementam (62 kopumā, es domāju)? Don't worry, me too I was surprised when I found out about it. Neuztraucieties, es arī biju pārsteigts, kad es uzzināju par to. And all these properties are there to help you better interact with your element and with the client. Un visas šīs īpašības ir tur, lai palīdzētu jums labāk mijiedarboties ar savu elementu un ar klientu.

Here's a list of div properties: Šeit ir par div īpašumu sarakstu:

Div properties

Div properties Div īpašības

I was talking about the div element, but the other elements do also have dozens of properties that you might never heard of before. Es runāju par div elementu, bet citi elementi darīt arī neskaitāmas īpašības, ka jūs nekad dzirdējis. Find all properties for the elements you're interested in at Java2s.com . Atrast visus elementus, jūs interesē pie Java2s.com īpašības. Good luck discovering the new possibilities of JavaScript! Good luck atklāj jaunas iespējas JavaScript!

Translate this post Tulkot šo ziņu


Related posts: Related posts:

  1. JavaScript: How to get the index (position within a group) of an object with jQuery? JavaScript: Kā nokļūt indekss (amatu grupā) un objekts ar jQuery?
  2. JavaScript: Get anchor from URL JavaScript: Get enkuru no URL
  3. JavaScript: Send function as a parameter to another function (callbacks) JavaScript: Sūtīt funkcija kā parametru citai funkcijai (callbacks)
  4. Javascript: How to validate email address with JavaScript? Javascript: Kā lai apstiprinātu e-pasta adresi ar JavaScript?
  5. PHP: Get all files and folders from a directory (folder) PHP: Get visus failus un mapes no direktorijā (mapē)

    blog comments powered by Disqus blog komentāriem powered by Disqus