JavaScript: Where do I Find All Properties for All HTML Elements ? जावास्क्रिप्ट: कहाँ मैं सभी HTML तत्वों के लिए सभी गुण मिला?
Posted on 08. 08 पर तैनात हैं. Jun, 2009 by Dragos in Coding , JavaScript & Ajax जून, 2009 कोडिंग, जावास्क्रिप्ट और Ajax में Dragos द्वारा
You think you're good at JavaScript? तुम्हें लगता है तुम जावास्क्रिप्ट में अच्छा कर रहे हो? Ok. ठीक है. Here's a question that'll test your JavaScript wisdom: How many properties does a DIV element have? यहाँ एक प्रश्न है कि आपके जावास्क्रिप्ट बुद्धि परीक्षण होगा: कितनी संपत्ति है एक DIV तत्व होता है?
Your answer is 5? आपका उत्तर 5 है? Because there is the name, id, class, style or title property. क्योंकि वहाँ का नाम, पहचान, वर्ग, शैली या शीर्षक की संपत्ति है. 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)? शायद तुम्हारा जवाब थोड़ा 5 से अधिक है, लेकिन आप अगर मैंने तुमसे कहा था कि वहाँ div तत्व के लिए 60 से अधिक संपत्ति हो जाएगा हैरान हो (कुल 62 में, मुझे लगता है)? Don't worry, me too I was surprised when I found out about it. चिंता मत करो, मुझे भी मैं हैरान था, जब मैं इसके बारे में पता चला. And all these properties are there to help you better interact with your element and with the client. और इन सब गुणों की मदद कर रहे हैं वहाँ के लिए बेहतर है तुम अपने तत्व और ग्राहक के साथ सहभागिता करते हैं.
Here's a list of div properties: यहाँ 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. मैं div तत्व के बारे में बात कर रहा था, लेकिन अन्य तत्वों को भी संपत्ति के दर्जनों कि तुम पहले कभी नहीं सुना सकता है क्या करना है. Find all properties for the elements you're interested in at Java2s.com . तत्वों आप में Java2s.com में रुचि रखते हैं के लिए सभी गुण खोजें. Good luck discovering the new possibilities of JavaScript! गुड लक जावास्क्रिप्ट की नई संभावनाओं की खोज!
Related posts: संबंधित पोस्ट:
- JavaScript: How to get the index (position within a group) of an object with jQuery? : जावास्क्रिप्ट कैसे सूचकांक प्राप्त करने की स्थिति एक समूह के भीतर (jQuery के साथ एक वस्तु का)?
- JavaScript: Get anchor from URL जावास्क्रिप्ट: URL से लंगर जाओ
- JavaScript: Send function as a parameter to another function (callbacks) जावास्क्रिप्ट: एक और समारोह callbacks (एक पैरामीटर के रूप में कार्य भेजें)
- Javascript: How to validate email address with JavaScript? : जावास्क्रिप्ट कैसे जावास्क्रिप्ट के साथ ईमेल पते की पुष्टि के लिए?
- PHP: Get all files and folders from a directory (folder) PHP: सभी फ़ाइलें और एक निर्देशिका फ़ोल्डर (फ़ोल्डर से प्राप्त)













































