open
打开一个新窗口,并装载URL指定的文档,或装载一个空白文档,如果没提供URL的话。
适用于
窗口
语法
window = object.open([URL[,name[,features[,replace]]]])
参数         说   明
URL     规定要显示的文档URL的串。如果规定了URL,就显示带有about:blank的新窗口。name选项。规定窗口名字的串。这个名字用于FORM上的或用于A。选项。规定显示窗口装饰物的串。
下面的表列出所支持的特征语法说明
fullscreen={yes | no | 1 | 0 }规定是在全屏幕上还是在正常窗口中显示浏览器。默认值是no。使用全屏幕模式要当心。因为
这种模式把浏览器的标题栏和菜单都隐蔽起来,你应当提供一个按钮或其他线索,帮助用户关闭这个窗口。Alt+F4也关闭这个新窗口。
channelmode=         { yes | no | 1 | 0 }规定是否以剧场模式显示窗口,并显示通道带。
toolbar={yes | no | 1 | 0 }规定是否显示浏览器toolbar、makingbutton,例如可用的Back、Forward、Stop
location={yes | no | 1 | 0 }规定是否显示用于把URL直接键入浏览器的输入字段

directories={yes | no | 1 | 0 }规定是否添加目录按钮,默认值是no
status={yes | no | 1 | 0 }规定是否在窗口底部添加状态条。默认是no
menubar={yes | no | 1 | 0 }规定是否显示菜单条。默认是no
scrollbars={yes | no | 1 | 0 }规定是否显示水平和垂直滚动条。默认是no
resizeble={yes | no | 1 | 0 }规定是否在窗口的角落上显示重定尺寸处理程序
width=number设置窗口的宽度,单位是像素
height=number规定窗口的高度,单位是像素。最小值是100
top=number规定顶位置,单位是像素。这个值是相对于屏幕的左上角的
left=number规定左位置,单位是像素。这个值是相对于屏幕左上角的
replace选项。是一个布尔值,规定要装入新页面上的URL是否在窗口浏览历史中要建立一个新条目,或者取代浏览历史中的当前条目。如果是真,就不建立新历史条目。

返回值
返回一个到新窗口的引用。
使用这个引用,在新窗口上脚本属性和方法上。说明新窗口的一个名字可以作为一种形式或一个A元素的目标。按照默认,open( )方法创建一个窗口。这个
窗口有默认宽度和高度、标准的菜单、工具条,和其他Internet Explorer特征。你可以使用特征参数改变这组特征。这个参数是由一个或多个特
征设定组成的串。替换参数便控制新窗口是否放到浏览器历史列表中。作为例子,下边创建一个包含Sample.htm的新窗口。新窗口为200乘400像
素,有一个状态条,但是没有工具条、菜单或地址字段。

但有些时候window.open()会被浏览器阻止,建议用window.showmodaldialog()

window.showmodaldialog()详解:http://www.cnblogs.com/Dlonghow/archive/2009/06/04/1496141.html

window.open()&&window.showmodaldialog()的更多相关文章

  1. 关于 window.parent, window.top, window.self 详解

    在应用有frameset或者iframe的页面时,parent是父窗口,top是最顶级父窗口(有的窗口中套了好几层frameset或者iframe),self是当前窗口,opener是用open方法打 ...

  2. jquery源码中的(function(window, undefined){})(window)【转】

    (function( window, undefined ) {})(window);这个,为什么要将window和undefined作为参数传给它? (function( $, undefined ...

  3. JS 关于(function( window, undefined ) {})(window)写法的理解

    JS 关于(function( window, undefined ) {})(window)写法的理解 [网络整理] (function( window, undefined ) {})(windo ...

  4. Javascript 中的window.parent ,window.top,window.self 详解

    在应用有frameset或者iframe的页面时,parent是父窗口,top是最顶级父窗口(有的窗口中套了好几层frameset或者iframe),self是当前窗口, opener是用open方法 ...

  5. wpf window set window的owner

        [DllImport("user32.dll")]   public static extern IntPtr GetAncestor(IntPtr hWnd, int f ...

  6. Js中的window.parent ,window.top,window.self 详解

    在应用有frameset或者iframe的页面时,parent是父窗口,top是最顶级父窗口(有的窗口中套了好几层frameset或者iframe),self是当前窗口, opener是用open方法 ...

  7. window.self ->window.top->window.parent

    在应用有frameset或者iframe的页面时,parent是父窗口,top是最顶级父窗口(有的窗口中套了好几层frameset或者iframe),self是当前窗口, opener是用open方法 ...

  8. JS中iframe相关的window.self,window.parent,window.top

    window.self指的是当前窗口:他等价于window,self,window.self window.top指的是最顶层的窗口(有些页面可能会嵌套好几个iframe)如果只有一个窗口,那么就返回 ...

  9. window.parent ,window.top,window.self 详解

    在应用有frameset或者iframe的页面时,parent是父窗口,top是最顶级父窗口(有的窗口中套了好几层frameset或者iframe),self是当前窗口, opener是用open方法 ...

  10. 拉动滚动条追加内容,无限延伸document高度 $(window).scroll(function(){if($(window).scrollTop() + $(window).height() == $(document).height()) { $("body").append(html) } })

    $(document).ready(function() { // endless scrolling $(window).scroll(function() { if($(window).scrol ...

随机推荐

  1. Loadrunne实现多个场景运行

    如何让Loadrunne实现多个场景运行? 场景分析: 有3个不同的场景,分别为搜索,下载,上传,其中3个场景执行顺序为按照搜索->下载->上传流程操作:哪么如何让Loadrunner中如 ...

  2. Liferay 6.2 改造系列之二十三:修改Liferay原始主题中"技术支持:Liferay"字样

    1.修改主题模板文件,具体位置如下 (1) portal-master\portal-web\docroot\html\themes\_unstyled\templates\portal_normal ...

  3. 《DSP using MATLAB》示例Example4.5

    代码: x1 = [1, 2, 3]; x2 = [2, 4, 3, 5]; % x1 x2 sequences % n1 = 0:1:2; n2 = 0:1:3; n1 = -1:1:1; n2 = ...

  4. react-redux(1)

    基础 Array.prototype.reduce //类似的核心思想 const initState = ''; const actions = ['a', 'b', 'c']; const new ...

  5. 转:Delphi 回调函数及例子

    http://anony3721.blog.163.com/blog/static/5119742010866050589/ { http://anony3721.blog.163.com/blog/ ...

  6. wpf 背景镂空loading.....

    第一步,,使用arc控件 ArcThickness="15" StartAngle="-6" EndAngle="6" 2,拉一个Ellip ...

  7. 使用frameset时的target属性

    http://blog.sina.com.cn/s/blog_8f82e8280101bwx9.html

  8. ural 1146. Maximum Sum

    1146. Maximum Sum Time limit: 0.5 secondMemory limit: 64 MB Given a 2-dimensional array of positive ...

  9. bzoj1005 [HNOI2008]明明的烦恼

    1005: [HNOI2008]明明的烦恼 Time Limit: 1 Sec  Memory Limit: 162 MBSubmit: 3032  Solved: 1209 Description ...

  10. BZOJ2646 : neerc2011 flight

    答案由$3$部分构成: $1$.抛物线的极值. $2$.询问区间的左端点在抛物线上的值. $3$.询问区间的右端点在抛物线上的值. 对于$1$,就是某个矩形范围内最大值查询,使用KD-Tree可以在$ ...