MDN self-hosted library · e01.org

StyleSheet: href property

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

html
<link rel="styleSheet" href="example.css" />
js
console.log(document.styleSheets[0].href);