Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting another window
Message
From
03/02/2003 10:26:08
 
 
To
03/02/2003 04:54:29
General information
Forum:
Internet
Category:
Javascript
Miscellaneous
Thread ID:
00748108
Message ID:
00748377
Views:
17
>This may not be ideal (opens a new window & closes it, if required window not already open), but it may do what you require - basically try opening a window with the required name & check the contents of that window, if blank close the window, otherwise load your URL :-
>
>
>var TargetWin = null ;
>TargetWin = window.open( '', 'MyName', 'left=2000' )
>if ( TargetWin.document.location == 'about:blank' )
> {
> TargetWin.close() ;
> TargetWin = null ;
> }
>else
> {
> TargetWin.navigate( 'YourURL' )
> }
>
>
>You may need to alter the 3rd parameter of the open method to ensure that the empty window is opened off screen to avoid the window flashing on & off.

Ok, thanks for the info, within that situation, I'll rethink about this entire challenge.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform