Quel est le paramètre de nom dans window.open ()

Quelqu'un peut-il me dire quel est le nom de cette fenêtre dans window.open() est-ce le nom du titre ou de l'Id dans le langage du script java?

 windowName 

Un nom à donner à la nouvelle fenêtre. Le nom peut être utilisé pour renvoyer cette fenêtre à nouveau.

Après avoir ouvert la fenêtre, vous voudrez faire toutes sortes de choses avec cela, par exemple, le déplacer, vous pouvez le faire

 <html> <head> <title>Window Example</title> </head> <SCRIPT language="JavaScript1.2"> function poponload() { testwindow= window.open ("", "mywindow"); alert('I will move window to 0,0'); testwindow.moveTo(0,0); } </SCRIPT> <body onload="javascript: poponload()"> <H1>Window Example</H1> </body> </html> 

Et NON, ce n'est pas le window title différent.

-la source

De MDC sur window.open ()

 window.open(strUrl, strWindowName [, strWindowFeatures]); 

StrWindowName
C'est la chaîne qui vient de nommer la nouvelle fenêtre. Une telle chaîne peut être utilisée comme cible de liens et de formulaires lorsque l'attribut cible d'un élément <a> ou d'une <form> est spécifié. Ce paramètre de chaîne ne doit pas contenir d'espace vide. strWindowName ne spécifie pas le titre de la nouvelle fenêtre.

De la documentation :

SName

 Optional. String that specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element. _blank The sURL is loaded into a new, unnamed window. _media The url is loaded in the Media Bar in Microsoft Internet Explorer 6. Windows XP Service Pack 2 (SP2) and later. This feature is no longer supported. By default the url is loaded into a new browser window or tab. _parent The sURL is loaded into the current frame's parent. If the frame has no parent, this value acts as the value _self. _search Disabled in Windows Internet Explorer 7, see Security and Compatibility in Internet Explorer 7 for details. Otherwise, the sURL is opened in the browser's search pane in Internet Explorer 5 or later. _self The current document is replaced with the specified sURL. _top sURL replaces any framesets that may be loaded. If there are no framesets defined, this value acts as the value _self.