Quackit Logo
HTML
CSS
Scripting
Database
Hosting
Design
XML

HTML Popup Window Code

You can use the following HTML code to create a popup window within your HTML document. Simply copy, paste, and change the values to suit.

Example HTML Popup Window Code:

CodeResult

Open a popup window

This example actually uses JavaScript code for the popup window. You can also open a new window using HTML code without JavaScript (although using the HTML method, you aren't able to specify how the window will look). To open a new window using HTML, see HTML Open New Window.

Automatically Center Your Popup

The following page has code for automatically centering your popup in the middle of the users' window, as well as other little snippets of code.

If you need to automatically center the popup on the screen, check it out.

Enjoy this page?

  1. Link to this page (copy/paste into your own website or blog):
  2. Link to Quackit using one of these banner ads.

Thanks for supporting Quackit!

Sponsored Link: Design CODE-FREE Websites