JavaScript - Window.Open

Window.open statement

1
window.open ("invoice_popup.asp", "_Blank", "height=270, width=215, toolbar=no, menubar=no")

syntax:

1
NewWindow = window.open( [sURL] [, sName] [, sFeatures] [, bReplace])

https://stackoverflow.com/questions/2438304/what-is-name-parameter-in-window-open

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.

Window Properties

to show the name of the window on a form.

References