open

fun open(unused1: String = definedExternally, unused2: String = definedExternally): Document(source)

Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method.

Parameters

url

Specifies a MIME type for the document.

name

Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element.

features

Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported.

replace

Specifies whether the existing entry for the document is replaced in the history list.

MDN Reference


fun open(url: String, name: String, features: String): WindowProxy?(source)
fun open(url: URL, name: String, features: String): WindowProxy?(source)