Advertisements

"Lambuz" <> wrote in message
news:...
> Is there any way to check the existance of a window by the name ?
>
> I'm using this code:
> window.open("http://www.google.com",'targetWin1')

sort of.
var w=window.open("http://www.google.com",'targetWin1')
if (null==w) {
//oops. no window - must have been killed by a popup blocker.
} else {
//yay. got a window
}
do something with w
w.close();
window.focus();
>
> If I open a window using previous code without getting immediatly
> return value of open method, can I get it in a second moment ? For
> example using the value of param sName of open method ?

I don't understand. second moment? what sName? you must be reading out of
some book.
in english?
>
> regards
>

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!