JavaScript: Where do I Find All Properties for All HTML Elements ? JavaScript: Mistä löydän kaikki ominaisuudet kaikki HTML-elementit?
Posted on 08. Postitettu 08. Jun, 2009 by Dragos in Coding , JavaScript & Ajax Kesäkuu, 2009 Dragos on Coding, JavaScript-ja Ajax
You think you're good at JavaScript? Luuletko, että olet hyvä JavaScript? Ok. Ok. Here's a question that'll test your JavaScript wisdom: How many properties does a DIV element have? Tässä on kysymys siitä, että saat testata JavaScript viisaus: Kuinka monta ominaisuuksia ei DIV elementti on?
Your answer is 5? Vastauksesi on 5? Because there is the name, id, class, style or title property. Sillä on nimi, id, class, tyyliä tai osaston omaisuutta. 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)? Ehkä vastaus on hieman yli 5, mutta haluaisit olla yllättynyt, jos olen kertonut sinulle, että on enemmän kuin 60 ominaisuudet div elementti (62 yhteensä, uskon)? Don't worry, me too I was surprised when I found out about it. Älä huoli, minä myös olin yllättynyt, kun sain tietää sen. And all these properties are there to help you better interact with your element and with the client. Ja kaikki nämä ominaisuudet ovat valmiina auttamaan sinua paremmin vuorovaikutus elementti ja asiakkaan kanssa.
Here's a list of div properties: Seuraavassa on luettelo div ominaisuudet:
I was talking about the div element, but the other elements do also have dozens of properties that you might never heard of before. Puhuin div elementti, mutta muut osat eivät myös kymmeniä ominaisuuksia, jotka ehkä koskaan ennen kuullutkaan. Find all properties for the elements you're interested in at Java2s.com . Etsi kaikki ominaisuudet elementit olet kiinnostunut klo Java2s.com. Good luck discovering the new possibilities of JavaScript! Onnea löytää uusia mahdollisuuksia JavaScript!
Related posts: Liittyvien virkojen:
- JavaScript: How to get the index (position within a group) of an object with jQuery? JavaScript: Miten saada indeksi (asema ryhmä) objektin kanssa jQuery?
- JavaScript: Get anchor from URL JavaScript: Hanki ankkuri URL-osoitteesta
- JavaScript: Send function as a parameter to another function (callbacks) JavaScript: Lähetä toimivat parametri toisen toiminnon (kutsuja)
- Javascript: How to validate email address with JavaScript? Javascript: Miten vahvistaa sähköpostiosoitteesi JavaScript?
- PHP: Get all files and folders from a directory (folder) PHP: Hanki kaikki tiedostot ja kansiot hakemisto (kansio)













































