JavaScript Window_methods Guide
Window methods: alert, confirm, prompt, open, close, print, and find for basic browser interaction. The guide walks through Window Methods. `alert(msg)` — OK dialog. `confirm(msg)` — OK/Cancel (returns boolean). `prompt(msg, default)` — text input (returns string/null). `window.open(url, name, features)` — new window. `window.close()` — close current. `window.print()` — print dialog. `window.getSelection()` — selected text. `window.matchMedia("(min-width: 768px)")` — media query match. The guide is organized into 1 sections that build on each other, each pairing a prose explanation with runnable code. Related guides: Arrays, Strings, Numbers, Math, Date. This is one of 145 JavaScript guides on JS Reference — see the full list on the guides page. Practice what you learn in the JavaScript playground, and look up any unfamiliar term in the JavaScript glossary.