[thelist] How to script window porpeerties
WORLD CONSPIRACY
worldcon at bellsouth.net
Tue Jul 17 11:16:20 CDT 2001
OK,
Im trying to script a new window with features with multiple links to the
same page and have it focus with each new link clicked.
I understand how to open and set features (except I cant figure how to set
where on the screen the page appears - other than the standard left
side-top).
<script language="JavaScript">
<!-- hide me
function defaultWindow()
{
default_window =
window.open("URL","default");
}
function plainWindow()
{
plain_window =
window.open("URL","plain","width=50,height=50");
}
function locationWindow()
{
location_window =
window.open("URL","locate","location,resizable");
}
// end hide -->
</script>
</head>
<body>
<h1>Here are a bunch of different windows</h1>
<a href="#" onClick="defaultWindow();">The default window</a><br>
<a href="#" onClick="plainWindow();">A small, plain window</a><br>
<a href="#" onClick="locationWindow();">A resizable window with a location
box</a><br>
</body>
I also understand how to "focus" a window.
<script language="JavaScript">
<!-- hide me
// open some new windows
var window_1 =
window.open("one.html","window_one","height=100,width=500,status,resizable")
;
var window_2 =
window.open("two.html","window_two","height=100,width=500,status,resizable")
;
// show me -->
</script>
</head>
<body>
<a href="#" onMouseOver="window_1.focus();return true;">MouseOver to bring
Window 1 forward</a><br>
<a href="#" onMouseOver="window_2.focus();return true;">MouseOver to bring
Window 2 forward</a><br>
</body>
Unfortunately I dont understand how to incorperate the 2 (possible 3) into
1 script.
Can anyone help?
Thanks
Flip C.
More information about the thelist
mailing list