Popup Window Generator
Generate the HTML and JavaScript for a link that opens a popup window.
Modern browsers may ignore some of these for security, and may open a new tab if the visitor's settings say so.
Processing and privacy
Processing varies by tool. Check the instructions for local processing, server requests, external services and any file or request limits before entering sensitive information.
Read the privacy policyShare this tool
Found it useful? Send it to a friend or teammate.
Rate this tool
0.0
0 ratings
- 5 stars 0
- 4 stars 0
- 3 stars 0
- 2 stars 0
- 1 star 0
Clear instructions
Find steps, examples and limitations below.
Use online
Open the tool in a supported web browser.
Free to use
No sign-up required. Tool-specific limits may apply.
How to use the Popup Window Generator
The popup window generator writes the code for a link that opens a page in a new browser window of a set size, for example for a help page, a chat window or a print preview. Choose the width and height, center it on the screen or set its position, and pick window features. The link still works as a normal link if JavaScript is disabled.
- 1 Enter the page address, link text and a window name.
- 2 Set the width, height and position, and choose the window features.
- 3 Copy the HTML, and click "Open test popup" to try it.
Example and practical tips
A "Live help" link can open a 600 × 450 window centered on screen, keeping the main page open behind it.
Frequently asked questions
Will popup blockers stop it?
Browsers allow popups opened by a click, so a link like this usually works. Popups opened automatically without a click are blocked.
Why are some features ignored?
Modern browsers ignore options like hiding the address bar for security, and some users set new windows to open as tabs.
Does it work without JavaScript?
Yes. The link has a normal href, so without JavaScript it opens the page in the same way as any link.
Practical guides
-
How to Use Popup Window Generator
Generate HTML and JavaScript for a link that opens a popup window with a set size, position and features, centered on screen if you like. Free generator.
Report an issue
Something broken or not quite right? Tell us and we will look into it.