Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting another window
Message
De
03/02/2003 10:26:08
 
 
À
03/02/2003 04:54:29
Information générale
Forum:
Internet
Catégorie:
Javascript
Divers
Thread ID:
00748108
Message ID:
00748377
Vues:
18
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform