语法
open(URL, windowName, windowFeatures)
参数
URL
A string specifying the URL to open in the new window. See the Location object for a描述 of the URL components.
windowName
A string specifying the window name to use in the TARGET attribute of a FORM or A tag. windowName can contain only alphanumeric or underscore (_) characters.
windowFeatures
(Optional) A string containing a comma-separated list determining whether or not to create various standard window features. These options are described below.
windowName的参数取值为_blank,_self,_top,_parent,他们的含义与html中相同。
如:
是不会响应的,这样就会响应:
window.open(pageURL,name,parameters)
其中:
pageURL 为子窗口路径
name 为子窗口句柄
parameters 为窗口参数(各参数用逗号分隔)