|MySQL Conference and Expo April 14-17, 2008, Santa Clara, CA|
Handling Windows and Frames Across Browsersby Joao Prado Maia
This article aims to show the properties and methods of the
That code will open a 400 x 200 pixel window with the URL specified. The variable
The textbook definition of the
This method returns a
Common applications for subwindows
One of the reasons to use subwindows on web sites is to create special features and sections of a web sites, with sections that are not as crucial linked to through subwindows. One of the best examples I can think of is the "Vote" subsection/application of CNN.com.
They have a large front page with links to all the important headlines and stories that generate traffic for them. They obviously want to keep their users on the front page with those stories right under their noses, so they designed the Vote application to create a new subwindow and post the form to this window.
The same content might be a good idea for a login form, so a subwindow could be used to show error messages or special sections for correctly logged in users.
Referencing parent windows from subwindows
The parent window might be referenced by the