MDN self-hosted library · e01.org

Document: open() method

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

js
document.open();
document.write("<p>Hello world!</p>");
document.write("<p>I am a fish</p>");
document.write("<p>The number is 42</p>");
document.close();
js
document.open("https://www.github.com", "", "noopener=true");
js
document.open(type, replace);