A RetroSearch Logo

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

Search Query:

Showing content from https://developer.cdn.mozilla.net/ko/docs/Web/API/Document/scripts below:

Document.scripts - Web API | MDN

Document.scripts

Baseline Widely available

scripts 는 Document인터페이스의 속성으로 문서 중<script> 요소의 목록을 반환합니다. 반환되는 객체는 단일 HTMLCollection 객체입니다.

값

HTMLCollection입니다. 이를 사용하여 목록의 모든 요소를 배열처럼 가져올 수 있습니다.

예제

다음은 페이지 내 <script> 요소의 존재를 확인하는 예시입니다.

let scripts = document.scripts;

if (scripts.length) {
  alert("This page has scripts!");
}
명세서 브라우저 호환성

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