MDN self-hosted library · e01.org

Using modules on the web

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

html
<script type="module" src="main.js"></script>
html
<script type="module">
  /* JavaScript module code here */
</script>