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 UPDATES VIA RSS | Email Get updates via feedburner Get updates via twitter
Home / Coding / JavaScript & Ajax / JavaScript: Where do I Find … Home / Coding / JavaScript & Ajax / JavaScript: Saan Maghanap ng mga ko ...

JavaScript: Where do I Find All Properties for All HTML Elements ? JavaScript: Saan ko Maghanap Lahat ng mga Katangian para sa Lahat ng Mga Sangkap ng HTML?

Posted on 08. Posted on 08. Jun, 2009 by Dragos in Coding , JavaScript & Ajax Hunyo, 2009 sa pamamagitan ng Dragos sa Coding, JavaScript & Ajax

You think you're good at JavaScript? Sa tingin mo ikaw ay mabuti sa JavaScript? Ok. Ok. Here's a question that'll test your JavaScript wisdom: How many properties does a DIV element have? Narito ang isang tanong na makikita sa iyong pagsubok sa JavaScript ang karunungan: Ilang ari-arian ay isang div ng sangkap na?

Your answer is 5? Ang iyong sagot ay 5? Because there is the name, id, class, style or title property. Dahil diyan ay ang pangalan, id, klase, estilo o titulo ng ari-arian. 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)? Siguro iyong sagot ay isang maliit na bit ng higit sa 5, ngunit nais mong mabigla kung ako sinabi sa iyo na may higit sa 60-aari para sa div sangkap (62 sa kabuuan, tingin ko)? Don't worry, me too I was surprised when I found out about it. Huwag mag-alala, me too ako ay ulat kapag natagpuan ko ang tungkol sa mga ito. And all these properties are there to help you better interact with your element and with the client. At sa lahat ng mga ari-arian ay doon upang makatulong sa iyo mas mahusay na makipag-ugnayan sa iyong mga sangkap at sa mga kliyente.

Here's a list of div properties: Narito ang isang listahan ng mga katangian ng div:

Div properties

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. Ako ay pakikipag-usap tungkol sa mga sangkap ng div, ngunit ang iba pang mga sangkap ko ay mayroon din ng mga dose-dosenang mga katangian na hindi mo maaaring narinig ng bago. Find all properties for the elements you're interested in at Java2s.com . Hanapin ang lahat ng ari-arian para sa mga sangkap na kayo ay interesado sa sa Java2s.com. Good luck discovering the new possibilities of JavaScript! Good luck malaman ang mga bagong posibilidad ng JavaScript na!

Translate this post Isalin ang post na ito


Related posts: Related posts:

  1. JavaScript: How to get the index (position within a group) of an object with jQuery? JavaScript: Paano upang makuha ang index (na posisyon sa loob ng isang grupo) ng isang bagay na may jQuery?
  2. JavaScript: Get anchor from URL JavaScript: Kumuha ng mga anchor mula sa URL
  3. JavaScript: Send function as a parameter to another function (callbacks) JavaScript: Ipadala ang function bilang isang parameter sa isa pang function (callbacks)
  4. Javascript: How to validate email address with JavaScript? Javascript: Paano upang mapatunayan ang email address sa JavaScript?
  5. PHP: Get all files and folders from a directory (folder) PHP: Kumuha ng lahat ng mga file at mga folder ng mula sa isang direktoryo (folder)

    blog comments powered by Disqus blog comments powered by Disqus