[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ja/docs/Web/API/HTMLScriptElement/integrity [Back]  [Original]

HTMLScriptElement: integrity - Web API | MDN

MDN Web Docs

View in English Always switch to English

HTMLScriptElement: integrity

Baseline

20184

integrity HTMLScriptElement

<script> integrity

html
<script
  id="el"
  src="https://example.com/example-framework.js"
  type="text/javascript"
  integrity="sha384-oqVuAfXRKap7fdgcCY5uykM6+R9GqQ8K/uxy9rx7HNQlGYl1kPzQho1wx4JwY8wC"
  crossorigin="anonymous"></script>
js
const el = document.getElementById("el");
console.log(el.integrity); // : "sha384-oqVuAfXRKap7fdgcCY5uykM6+R9GqQ8K/uxy9rx7HNQlGYl1kPzQho1wx4JwY8wC"

HTML
# dom-script-integrity


Web Proxy Viewer  |  New URL  |  Original Page