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ソースオブジェクト

ソースオブジェクト

ソースオブジェクトは、HTML5で新しく追加されました。

ソースオブジェクトは、HTMLの<source>要素を表します。

ソースオブジェクトへのアクセス

あなたは、<source>要素にアクセスするためにgetElementByIdを()を使用することができます。

var x = document.getElementById("mySource"); 尝试一下

ソースオブジェクトの作成

あなたは、<source>要素を作成するためのdocument.createElement()メソッドを使用することができます。

var x = document.createElement("SOURCE"); 尝试一下

ソースオブジェクトのプロパティ

属性 描述
media 设置或返回 <source> 元素中 media 属性的值。
src 设置或返回 <source> 元素中 src 属性的值。
type 设置或返回 <source> 元素中 type 属性的值。

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

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


関連記事

HTMLチュートリアル: HTML5の接続ビデオ(動画)

HTMLチュートリアル: HTML5オーディオ(音声)

HTMLリファレンス・マニュアル: HTMLの<ソース>タグ