[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Opening multiple windows
Your onClick event calls a function with the multiple window instructions.
For example, suppose onClick="openWin()":
function openWin() {
win1 = window.open ("doc1", "document1")
win2 = window.open ("doc2", "document2")
}
The above doesn't take into account the Mac and X-Windows bug where you have
to open each window twice, but you get the general idea.
Similarly, you call a single function with multiple close instructions:
function closeWin() {
win1.close();
win3.close();
}
For #3, you can just call a function with onClick for each button that opens
the window (or you can put the contents of the function right in the onClick
string):
function openDoc1 () {
win1 = window.open ("doc1", "document1")
}
and another:
function openDoc2 () {
win1 = window.open ("doc2", "document2")
}
When you you open windows, though, *remember the Mac and X-Windows bug*.
-- Gordon
At 03:23 PM 3/7/96 -0500, you wrote:
>Can anyone tell me a way to
>
>1.) open multiple windows with one OnCLick event?
>2.) close multiple windows with one on click event?
>3.) use two buttons on the same page that each open a SEPARATE
>window?
>
>I'm stumped!
>
>ed
>--------------------------------------------------------------------
>For help about the list, please send a message to 'majordomo@obscure.org'
>with the message body 'help'. To unsubscribe, send a message to
>'majordomo@obscure.org' with the message body 'unsubscribe javascript'.
>List archives and pointer to FAQ: http://www.obscure.org/javascript/
>
>
--------------------------------------------------------------------
For help about the list, please send a message to 'majordomo@obscure.org'
with the message body 'help'. To unsubscribe, send a message to
'majordomo@obscure.org' with the message body 'unsubscribe javascript'.
List archives and pointer to FAQ: http://www.obscure.org/javascript/