MDN self-hosted library · e01.org

Redirections in HTTP

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

html
<head>
  <meta http-equiv="Refresh" content="0; URL=https://example.com/" />
</head>
js
window.location = "https://example.com/";