JavaScript: Where do I Find All Properties for All HTML Elements ? JavaScript: Unde pot găsi toate Proprietăţi de toate elementele HTML?
Posted on 08. Postat la data de 08. Jun, 2009 by Dragos in Coding , JavaScript & Ajax Iunie, 2009 de către Dragos în codificare a mărfurilor, JavaScript & Ajax
You think you're good at JavaScript? Crezi ca esti bun la JavaScript? Ok. Ok. Here's a question that'll test your JavaScript wisdom: How many properties does a DIV element have? Iată o întrebare pe care testăm înţelepciunea ta JavaScript: Cât de multe proprietăţi are un element de DIV-au?
Your answer is 5? Răspunsul dumneavoastră este de 5? Because there is the name, id, class, style or title property. Pentru că acolo este numele, id, clasa, stil sau titlu de proprietate. 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)? Poate că răspunsul dumneavoastră este un pic mai mult decât 5, dar ar ai fi surprins dacă ţi-am spus că există mai mult de 60 de proprietăţi pentru elementul de div (62 în total, cred)? Don't worry, me too I was surprised when I found out about it. Nu vă faceţi griji, si eu am fost surprins când am aflat despre ea. And all these properties are there to help you better interact with your element and with the client. Şi toate aceste proprietăţi sunt acolo pentru a vă ajuta să o mai bună interacţiune cu element de dumneavoastră şi cu clientul.
Here's a list of div properties: Iată o listă de proprietăţi div:
I was talking about the div element, but the other elements do also have dozens of properties that you might never heard of before. Vorbeam despre elementul div, dar celelalte elemente nu au, de asemenea, zeci de proprietăţi pe care niciodată nu s-ar putea auzit de înainte. Find all properties for the elements you're interested in at Java2s.com . Cauta toate proprietăţile pentru elementele de care sunteţi interesat, de la Java2s.com. Good luck discovering the new possibilities of JavaScript! Mult noroc descoperirea noilor posibilităţi de JavaScript!
Related posts: Legate de posturi:
- JavaScript: How to get the index (position within a group) of an object with jQuery? JavaScript: Cum se ajunge indicele (poziţia în cadrul unui grup), de un obiect cu jQuery?
- JavaScript: Get anchor from URL JavaScript: Ia ancora de la URL-ul
- JavaScript: Send function as a parameter to another function (callbacks) JavaScript: Trimite funcţioneze ca un parametru de la o altă funcţie (Callbacks)
- Javascript: How to validate email address with JavaScript? Javascript: Cum, pentru a valida adresa de e-mail cu JavaScript?
- PHP: Get all files and folders from a directory (folder) PHP: Get toate fişierele şi folderele de la un director (folder)













































