Quackit Logo

FREE Hosting!

With every domain name you register with ZappyHost, you get FREE hosting.

$1.99 Domain Names

With every new non-domain purchase thru ZappyHost, you get a domain name for only $1.99.

HTML Popup Window Code

Print Version

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:

This results in:

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 website?

  1. Link to this page (copy/paste into your own website or blog):
  2. Add this page to your favorite social bookmarks sites:
               
  3. Add this page to your Favorites

Oh, and thank you for supporting Quackit!