function quarter() {
window.resizeTo(window.screen.availWidth / 2, window.screen.availHeight / 2);
}Window: resizeTo() method / notebook
Window: resizeTo() method
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.