Passing the value _blankinto the parameter namewill load the passed URLinto a new window . Like this:
window.open(url, '_blank', 'width=300,height=250');
Other parameters for the parameter name(optional) include:
_blank. The URL is loading in a new window. Defaults to_parent - The url is loaded into the parent frame_self - URL-_top - URL-name -
, JavaScript A, IE , A. :
<a href="javascript:var w=window.open(url, '_blank', 'width=300,height=250');">test</a>
( ):
<a href="javascript:void(0);" onclick="window.open(url, '_blank', 'width=300,height=250');">test</a>
: