Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is not Baseline because it does not work in some of the most widely-used browsers.
capture は HTMLInputElement インターフェイスのプロパティで、 <input> 要素の capture 属性を反映します。 <input> の file 型の場合のみ関連するこのプロパティと属性は、新しいファイルをユーザー側 (user) または外部側 (environment) のカメラまたはマイクから取得するかどうかを指定します。ファイルの種類は、 accept 属性で定義します。 この属性が明示的に設定されていない場合、 capture プロパティは空文字列となります。
文字列です。ふつうは user または environment、または空文字列 ("") です。
| HTML Media Capture # dom-htmlinputelement-capture |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025年4月12日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.