JavaScript: Where do I Find All Properties for All HTML Elements ? جافا سكريبت : أين يمكنني إيجاد جميع خصائص لجميع عناصر أتش تي أم أل؟
Posted on 08. نشر يوم 08. Jun, 2009 by Dragos in Coding , JavaScript & Ajax يونيو ، 2009 من قبل دراكوش في الترميز ، جافا سكريبت واياكس
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 ، ولكن لن يفاجأ اذا قلت لكم ان هناك أكثر من 60 منشأة فندقية للعنصر div (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. كنت أتحدث عن العنصر شعبة ، ولكن عناصر أخرى لا يكون كذلك عشرات من الخصائص التي قد لا يسمع بها من قبل. 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 جافا سكريبت : احصل على مرساة من رابط
- JavaScript: Send function as a parameter to another function (callbacks) جافا سكريبت : إرسال الدالة كمعلمة إلى وظيفة أخرى (رد)
- Javascript: How to validate email address with JavaScript? جافا سكريبت : كيفية التحقق من صحة عنوان البريد الإلكتروني مع جافا سكريبت؟
- PHP: Get all files and folders from a directory (folder) [فب] : احصل على جميع الملفات والمجلدات من دليل (مجلد)













































