Popup Window
windows and alerts 1996 partlyOpens a small chromeless window sized to your content.
In 2026: Works only when it happens inside a click. A window.open on page load is blocked by every browser, which is the whole reason popup blockers exist.
Where it came from: Netscape JavaScript 1.0 window.open, 1996. MDN ↗
<script language="JavaScript">
function popUp(url, w, h) {
window.open(url, "popup",
"width=" + w + ",height=" + h +
",scrollbars=yes,resizable=yes,toolbar=no,menubar=no,status=no");
}
</script>
<a href="javascript:popUp('/photo.html', 420, 340)">View the photo</a>
<!-- Straight onto a link, with a no-JS fallback -->
<a href="/photo.html" target="_blank"
onclick="popUp(this.href, 420, 340); return false">View the photo</a>