JavaScript Reference/Javascript Methods/open
"open()" Example
<source lang="javascript">
<html> <body> <input type="button"
value="Open a new window" onClick="window.open("http://www.wbex.ru", "_blank")">
<input type="button"
value="Open a blank document" onClick="document.open("http://www.wbex.ru", "_blank")">
</body> </html>
</source>
"open()" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |document window | +----------------+--------------------------------------------------------------+
</source>
"open()" Syntax, Parameters and Note
<source lang="javascript">
Note: Opens a new window.
Syntax:
objectName.open(param1, param2, param3, param4) Parameters:
param1 Optional; the URL of the document to display. If omitted, a blank window is opened. param2 Optional; the name of the window. _blank, _media, _parent, _search, _self, _top, any string. param3 Optional; the attributes for the new window. Where applicable, each attribute must be accompanied by its corresponding value, and each attribute-value pair must be separated by a comma. For a complete list of options, go to: http://msdn.microsoft.ru/workshop/author/dhtml/reference/methods/open_0.asp.. param4 Optional; true or false, indicating whether to replace the current document in the history list or to create a new entry for the new document. </source>