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:ここに部のプロパティのリストです:
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の新たな可能性を発見するね!
Related posts:関連記事:
- JavaScript: How to get the index (position within a group) of an object with jQuery? JavaScriptを:どのようにjQueryを使ってオブジェクトの(位置は 、 グループ内)のインデックスを取得する?
- JavaScript: Get anchor from URL JavaScriptを:URLからアンカーを取得
- JavaScript: Send function as a parameter to another function (callbacks) JavaScriptを:別の関数(コールバック)へのパラメータとして関数を送る
- Javascript: How to validate email address with JavaScript? Javascriptを:どのようにJavaScriptを使って電子メールアドレスを検証する?
- PHP: Get all files and folders from a directory (folder) PHPを:すべてのファイルとフォルダのディレクトリ(フォルダ)から入手













































