A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/ja/docs/Web/API/HTMLInputElement/capture below:

HTMLInputElement: capture プãƒãƒ‘ティ - Web API

HTMLInputElement: capture プロパティ

Limited availability

capture は HTMLInputElement インターフェイスのプロパティで、 <input> 要素の capture 属性を反映します。 <input> の file 型の場合のみ関連するこのプロパティと属性は、新しいファイルをユーザー側 (user) または外部側 (environment) のカメラまたはマイクから取得するかどうかを指定します。ファイルの種類は、 accept 属性で定義します。 この属性が明示的に設定されていない場合、 capture プロパティは空文字列となります。

値

文字列です。ふつうは user または environment、または空文字列 ("") です。

例
const inputElement = document.querySelector("avatar");
console.log(inputElement.capture); // 現在の capture 属性の値
inputElement.capture = "user"; // capture 値を設定
仕様書 ブラウザーの互換性 関連情報

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4