JavaScript: Where do I Find All Properties for All HTML Elements ? Java: Ku mund ta Find All Prona të gjitha elementet HTML?
Posted on 08. Dërguar të 08. Jun, 2009 by Dragos in Coding , JavaScript & Ajax Qershor, 2009 nga Dragos në kodim, JavaScript dhe AJAX
You think you're good at JavaScript? Ju mendoni se ju jeni i mirë në JavaScript? Ok. Dakord. Here's a question that'll test your JavaScript wisdom: How many properties does a DIV element have? Këtu ka një pyetje që do të testit urtësi tuaj të aktivizoni Java: Sa shumë prona ka një element DIV keni?
Your answer is 5? Përgjigja juaj është 5? Because there is the name, id, class, style or title property. Sepse nuk ka emër, id, klasa, stil ose pasurisë titullin. 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)? Ndoshta përgjigjja jote është pak më shumë se 5, por do të jeni të befasuar nëse ju thashë se ka më shumë se 60 prona për elementin div (62 në total, I think)? Don't worry, me too I was surprised when I found out about it. Mos u shqetësoni, gjithashtu edhe unë isha i habitur kur kam gjetur më shumë për të. And all these properties are there to help you better interact with your element and with the client. Dhe të gjithë këto prona janë atje për të ndihmuar ju më mirë bashkëveprojnë me elementin tuaj dhe me klientin.
Here's a list of div properties: Këtu është një listë të pronave 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. Unë kam qenë duke folur për elementin div, por elementet e tjera do të ketë dhjetra të pronave që nuk mund të dëgjuar e parë. Find all properties for the elements you're interested in at Java2s.com . Gjej të gjitha pronat për elementet që ju jeni të interesuar në të Java2s.com. Good luck discovering the new possibilities of JavaScript! Good luck të zbuluar mundësi të reja e JavaScript-in!
Related posts: Related posts:
- JavaScript: How to get the index (position within a group) of an object with jQuery? Java: Si të merrni indeksi (pozitë brenda një grupi) e një objekti me jQuery?
- JavaScript: Get anchor from URL JavaScript: Merrni të ankorohen nga URL
- JavaScript: Send function as a parameter to another function (callbacks) JavaScript: Send të funksionojë si një parametër të një tjetër funksion (callbacks)
- Javascript: How to validate email address with JavaScript? Javascript: Si të vërtetoni adresën e email me të aktivizoni Java?
- PHP: Get all files and folders from a directory (folder) PHP: Merrni të gjitha dosjet dhe dosjet nga një në dosjen (folder)













































