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アップデートのVIA のRSS | メール Get updates via feedburner Get updates via twitter
Home / Coding / JavaScript & Ajax / JavaScript: Where do I Find … ホーム / コーディング / JavaScriptの&のAjax / 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 6月、2009 符号化のJavaScript&Ajaxのドラゴシュ

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.理由は、 名、ID、クラス、スタイル、またはタイトルのプロパティです。 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 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を:URLからアンカーを取得
  3. JavaScript: Send function as a parameter to another function (callbacks) JavaScriptを:別の関数(コールバック)へのパラメータとして関数を送る
  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 ブログのコメントディスカスによって供給さ