This is a translated page. The original can be found here: http://iwebdevel.com/2009/06/08/javascript-where-do-i-find-all-properties-for-all-html-elements/
UPDATES VIA RSS | Email עדכונים דרך RSS | אימייל Get updates via feedburner Get updates via twitter
Home / Coding / JavaScript & Ajax / JavaScript: Where do I Find … דף הבית / Coding / JavaScript & אייאקס / JavaScript: איפה אני מוצא ...

JavaScript: Where do I Find All Properties for All HTML Elements ? JavaScript: איפה אני מוצא כל מאפיינים עבור כל האלמנטים של HTML?

Posted on 08. פורסם ב 08. Jun, 2009 by Dragos in Coding , JavaScript & Ajax יוני, 2009 על ידי Dragos ב וקידוד, JavaScript & אייאקס

You think you're good at JavaScript? אתה חושב שאתה טוב ב-JavaScript? Ok. אישור. Here's a question that'll test your JavaScript wisdom: How many properties does a DIV element have? הנה שאלה כי יהיה מבחן חוכמה JavaScript שלך: כיצד מאפיינים רבים עושה אלמנט 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:

Div properties

Div properties מאפייני דיב

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! מזל טוב לגילוי אפשרויות חדשות של JavaScript!

Translate this post תרגם פירסום


Related posts: הודעות קשורות:

  1. JavaScript: How to get the index (position within a group) of an object with jQuery? JavaScript: כיצד לקבל את האינדקס (עמדת בתוך קבוצה) של אובייקט עם jQuery?
  2. JavaScript: Get anchor from URL JavaScript: קבל עוגן מתוך כתובת
  3. JavaScript: Send function as a parameter to another function (callbacks) JavaScript: שלח פונקציה כפרמטר לפונקציה אחרת (callbacks)
  4. Javascript: How to validate email address with JavaScript? Javascript: כיצד לאמת את כתובת הדוא"ל עם JavaScript?
  5. PHP: Get all files and folders from a directory (folder) PHP: קבל את כל הקבצים והתיקיות בספרייה (תיקייה)

    blog comments powered by Disqus תגובות לבלוג powered by Disqus