Latest web development tutorials
×

JavaScript & HTML DOM リファレンスマニュアル

概要

JavaScript オブジェクト

JavaScript Array オブジェクト JavaScript Boolean オブジェクト JavaScript Date オブジェクト JavaScript Math オブジェクト JavaScript Number オブジェクト JavaScript String オブジェクト JavaScript RegExp オブジェクト JavaScript グローバルプロパティ/関数 JavaScript 演算子

Browser オブジェクト

Window オブジェクト Navigator オブジェクト Screen オブジェクト History オブジェクト Location オブジェクト

DOM オブジェクト

HTML DOM Document オブジェクト HTML DOM Elementオブジェクト HTML DOM 属性オブジェクト HTML DOM イベントオブジェクト

HTML オブジェクト

<a> <area> <audio> <base> <blockquote> <body> <button> <canvas> <col> <colgroup> <datalist> <del> <details> <dialog> <embed> <fieldset> <form> <iframe> <frameset > <img> <ins> <input> - button <input> - checkbox <input> - color <input> - date <input> - datetime <input> - datetime-local <input> - email <input> - file <input> - hidden <input> - image <input> - month <input> - number <input> - range <input> - password <input> - radio <input> - reset <input> - search <input> - submit <input> - text <input> - time <input> - url <input> - week <keygen> <link> <label> <legend> <li> <map> <menu> <menuItem> <meta> <meter> <object> <ol> <optgroup> <option> <param> <progress> <q> <script> <select> <source> <style> <table> <td> <th> <tr> <textarea> <title> <time> <track> <video>

HTML DOMオプションオブジェクト

オプションオブジェクト

Optionオブジェクトは、ドロップダウンオプションのリストのHTMLフォームを表します。

HTMLフォームでは、<オプション>タグには、オプションのオブジェクトが作成されるたびに表示されます。

あなたの要素[]配列アクセスをOptionオブジェクトを形成することができる、またはのdocument.getElementById()を使用します。


オプションオブジェクトのプロパティ

W3C:W3C標準。

属性 描述 W3C
defaultSelected 返回 selected 属性的默认值。 Yes
disabled 设置或返回选项是否应被禁用。 Yes
form 返回对包含选项的表单的引用 Yes
index 返回对包含该元素的 <form> 元素的引用。 Yes
selected 设置或返回 selected 属性的值。 Yes
text 设置或返回某个选项的纯文本值。 Yes
value 设置或返回被送往服务器的值。 Yes

標準プロパティとイベント

オプションオブジェクトは、標準サポートし、属性イベントを