我有一个变量userid
var userid="userid"+id;
window.open('1.html',userid,'width=screen.width,height=screen.height');
我这里的id是通过ajax获得,现在调用window.open就报参数无效,请问该怎么解决?
...全文
6277打赏收藏
window.open参数问题
我有一个变量userid var userid="userid"+id; window.open('1.html',userid,'width=screen.width,height=screen.height'); 我这里的id是通过ajax获得,现在调用window.open就报参数无效,请问该怎么解决?
oNewWindow = window.open( [sURL] [, sName] [, sFeatures] [, bReplace])
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 a element._blank The sURL is loaded into a new, unnamed window.
_media The sURL is loaded into the HTML content area of the Media Bar. Available in Internet Explorer 6 or later.
_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 Available in Internet Explorer 5 and later. The sURL is opened in the browser's search pane.
_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.