Creating a New Window
-
window object refers to current window, as does self.
-
But, you can create and control a new window.
-
DispWin = window.open('http://www.uc.edu','NewWin','toolbar=no,status=no,width=300,height=500');
-
Where: DispWin stores the new window as an object.
-
First parameter is the URL of the new window, or blank if you are going
to write it entirely with JavaScript.
-
Second property is the name, assigned to window.name.
-
Third parameter is optional features, such as size, separated by commas.
-
To close a window: window.close(), DispWin.close()
Dialog Boxes
Home
Internet II: Day 4