JavaScript: Where do I Find All Properties for All HTML Elements ? JavaScript: Gdje mogu pronaći Sve nekretnine za sve HTML elemenata?
Posted on 08. Posted na 08. Jun, 2009 by Dragos in Coding , JavaScript & Ajax Jun, 2009 by Dragos u kodiranju, Ajax & JavaScript
You think you're good at JavaScript? Vi mislite da ste dobri na JavaScript? Ok. U redu. Here's a question that'll test your JavaScript wisdom: How many properties does a DIV element have? Evo pitanje koje ćete testirati vaš JavaScript mudrost: Koliko svojstva ne DIV element ima?
Your answer is 5? Vaš odgovor je 5? Because there is the name, id, class, style or title property. Budući da je ime, ID, klasa, stil ili naslov imovine. 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)? Možda je vaš odgovor malo više od 5, ali će te se iznenaditi ako sam vam rekao da postoji više od 60 svojstva div element (62 ukupno, mislim)? Don't worry, me too I was surprised when I found out about it. Ne brinite, mi također bio sam iznenađen kada sam saznala o njemu. And all these properties are there to help you better interact with your element and with the client. I sve ove osobine su tu da vam pomoći da bolje komunicirati sa svojim element i sa klijentom.
Here's a list of div properties: Evo popis div svojstva:
I was talking about the div element, but the other elements do also have dozens of properties that you might never heard of before. Ja sam govorio o div elementu, ali isto tako da ostali elementi imaju desetine svojstva koja se nikada ne bi čuo prije. Find all properties for the elements you're interested in at Java2s.com . Nađi sve svojstva elemenata koje Vas zanimaju u Java2s.com. Good luck discovering the new possibilities of JavaScript! Sretno otkrivajući nove mogućnosti JavaScript!
Related posts: Related posts:
- JavaScript: How to get the index (position within a group) of an object with jQuery? JavaScript: Kako biste dobili indeks (poziciju unutar grupe) s jQuery objekt?
- JavaScript: Get anchor from URL JavaScript: Get sidro iz URL-a
- JavaScript: Send function as a parameter to another function (callbacks) JavaScript: Pošaljite funkcija kao parametar za druge funkcije (callbacks)
- Javascript: How to validate email address with JavaScript? Javascript: Kako da biste provjerili valjanost adresa e-pošte s JavaScriptom?
- PHP: Get all files and folders from a directory (folder) PHP: Saznajte sve datoteke i mape iz direktorija (mapa)













































