window.open features

Download center

Features Exclusive — Window.open

Features Exclusive — Window.open

The windowFeatures parameter is where the magic happens. It is a string (not an object) consisting of name=value pairs.

window.open('https://example.com', 'myWindow', 'toolbar=no,addressbar=no,scrollbars=yes'); window.open features

: Toggles the display of the browser navigation bar (Back, Forward, Home buttons). The windowFeatures parameter is where the magic happens

// Center the window const left = (screen.width - width) / 2; const top = (screen.height - height) / 2; const newWindow = window.open('https://example.com'

const newWindow = window.open('https://example.com', 'myWindow', 'dependent=yes,width=400,height=300');

window.open features