Web Development HTML Guide - Learn HTML
Developer Tutorials
ASP
CGI & Perl
CSS
Flash
HTML
Java
JavaScript
Linux
MySQL
PHP
Photoshop
Python
Wireless
XML



Developer Manuals
Learn HTML
Learn PHP
Learn MySQL
Learn CSS
Learn Pear


Developer Scripts
ASP Scripts
ASP.NET Scripts
CGI & Perl Scripts
Flash Scripts
Java Scripts
JavaScript Scripts
PHP Scripts
Python Scripts
Remotely Hosted Scripts
Tools & Utilities Scripts
XML Scripts

Developer Resources
Developer Tools
Developer News
Developer Forums
Developer Content
Developer Book Reviews
Survey Software

Web Hosting Directory
Budget Web Hosting
ColdFusion Hosting
Dedicated Servers
Domain Hosting
E-Commerce Hosting
Email Hosting
Free Web Hosting
Linux Web Hosting
Managed Hosting
Reseller Hosting
Small Business Hosting
Windows Web Hosting

Popup Windows: open() Parameters

Until now we've focused on the process of opening and closing the popup window. We'll now shift to the properties of the popup itself. All of the popup's properties are set in the open() command. We've used open() in every script in this tutorial.

Specifically, the properties of the popup are set in the third argument for open() which is a list of properties for the popup. Properties are set somewhat similar to the way HTML attributes are set: the name of the property followed by an equal sign followed by the value. Properties are separated by commas. Because of a widespread bug in MSIE, do not put any spaces in the list of properties. The entire list of properties goes inside quotes. So, for example, the following line of code sets width to 400, height to 200, and turns scrollbars on.

We'll begin with the width & height properties, which are always required except in full screen mode. All other properties are optional. Here's a list of popup properties.
width & height the dimensions of the popup
left & top the distance from the top and left side of the screen
toolbar if the popup should have a set of navigation buttons across the top
location if the popup should have a location bar where the URL is displayed
directories if the popup should have a row across the top with buttons to popular web sites
status if the popup should have a status bar across the bottom
menubar if the popup should have a menu
scrollbars if the popup should have scroll bars
resizable if users can resize the popup
dependent if the popup should close when its opener window closes
full screen how to open a full screen popup
channelmode MSIE's channel mode


Copyright Idocs, Inc. Written by Miko Sullivan











About the NetVisits, Inc Network | Advertise
Developer Tutorials hosted by HostGator.
Copyright ©2007 NetVisits, Inc Network. All Rights Reserved. Privacy Policy.
Visit other NetVisits, Inc. sites: