Window Opener Utility
Test your window configurations. This interactive script lets you input a URL and window dimensions to test how different popup settings behave in your current browser.
Copy the Script
<script>
function openSpecWindow(url, w, h) {
// Generate the features string
var specs = "width=" + w + ",height=" + h + ",scrollbars=yes,resizable=yes";
// Open the window
window.open(url, "CustomWin", specs);
}
</script>
Frequently Asked Questions
The window will still open, but it will be empty (about:blank). You can then use JavaScript to write content into it.
Security. Modern browsers force the address bar (or at least the domain name) to be visible in all popups to prevent phishing attacks.
Yes. If you provide a unique 'Window Name' for each one, they will open separately. If you keep the same name, the browser will reuse the existing window.