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/Document/scripts below:

Document: scripts プãƒãƒ‘ティ - Web API

Document: scripts プロパティ

Baseline Widely available

scripts は Document インターフェイスのプロパティで、文書中の <script> 要素のリストを返します。返されるオブジェクトは単一の HTMLCollection オブジェクトです。

値

HTMLCollection です。これを使用して、リスト中のすべての要素を配列のように取得することができます。

例

ページ内の <script> 要素の存在を確認する例を以下に示します。

let scripts = document.scripts;

if (scripts.length) {
  alert("このページには script 要素があります。");
}
仕様書 ブラウザーの互換性

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