1. Computing & Technology

Basic Popup Windows

Introduction

From , former About.com Guide

See More About:

With HTML you can open a page in a new window by using target="_blank". The problem with this is that you have no control over the size of the new window that is opened, where it is positioned on the screen, or what browser control bars display on that window.

We can gain that control over the popup window that we are opening by using Javascript to open the new window instead of HTML. The content of the new window can either be a separate web page or can be dynamically created by the Javascript. In this tutorial we will consider how to create a simple popup where the content to be used is defined as a separate web page.

©2012 About.com. All rights reserved.

A part of The New York Times Company.