可以使用window.open()传递参数
这个函数的具体设定方法参照这个页面:
http://www.w3schools.com/htmldom/met_win_open.asp
channelmode=yes|no|1|0 |
Whether or not to display the window in theater mode. Default is no |
directories=yes|no|1|0 |
Whether or not to add directory buttons. Default is yes |
fullscreen=yes|no|1|0 |
Whether or not to display the browser in full-screen mode. Default is no. A window in full-screen mode must also be in theater mode |
height=pixels |
The height of the window. Min. value is 100 |
left=pixels |
The left position of the window |
location=yes|no|1|0 |
Whether or not to display the address field. Default is yes |
menubar=yes|no|1|0 |
Whether or not to display the menu bar. Default is yes |
resizable=yes|no|1|0 |
Whether or not the window is resizable. Default is yes |
scrollbars=yes|no|1|0 |
Whether or not to display scroll bars. Default is yes |
status=yes|no|1|0 |
Whether or not to add a status bar. Default is yes |
titlebar=yes|no|1|0 |
Whether or not to display the title bar. Ignored unless the calling application is an HTML Application or a trusted dialog box. Default is yes |
toolbar=yes|no|1|0 |
Whether or not to display the browser toolbar. Default is yes |
top=pixels |
The top position of the window |
width=pixels |
The width of the window. Min. value is 100 |
分享到:
相关推荐
主要讲解了如何利用window.open打开新窗口,和打开新窗口时的一些参数的设置,很实用的。
JavaScript中Window.open参数详解 1、最基本的弹出窗口代码 2、经过设置后的弹出窗口 3、用函数控制弹出窗口 4、同时弹出2个窗口 5、主窗口打开文件1.htm,同时弹出小窗口page.html ...
本文主要向大家介绍了如何使用window.open()实现post传递参数的方法,思路是参考的一位网友的,然后根据自己的项目需求做了些调整,这里同样分享给大家,希望对大家能够有所帮助。
估计很少人知道HTML5 APIS里有一个window.postMessage API。...var myPopup = window.open(domain '/windowPostMessageListener.html','myWindow'); //周期性的发送消息 setInterval(funct[......] 阅读全文>>
window.open()的所有参数列表
本篇文章是对window.open的使用方法进行了详细的总结与介绍,需要的朋友参考下
代码如下: //打开新页面并利用post方式传递参数 function openNewPageWithPostData(postAddress,opentype,paramNames,paramValues) { var newWindow = window.open(postAddress,opentype); if (!newWindow) { return...
第一种方式 最近在做web项目,碰到需要跨页面传递参数的功能,就是那种需要把当前页面的内容带到新开的子窗体中,以前的做法是传一个id过去,然后在新窗口中去读数据库的内容。虽然不怎么麻烦,但是如果内容么有在...
前言
程序没有改动过运行一直正常,突然... 代码如下: “[removed]window.showModalDialog(‘Info.aspx?bh=” + Server.UrlEncode(e.Row.Cells.FromKey(“编号”).Text.Trim()) + “‘,null,’dialogWidth:750px;dialogHeig
使用window.open()传递参数 使用redirect到html页面 js获取参数函数
easyUi弹出window窗口传值与调用父页面的方法,子页面给父页面赋值,详情链接:
javascript 两个页面之间传值 使用window.open()
我们经常写form表单,提交时,可以传递参数,如果使用表单,并将其隐藏起来,应该可以达到效果。 除此以外,[removed].href和window.open也可以达到效果。 1、通过form表单传递参数 <html l
window.open(url, "", "width=600,height=400"); 第二个参数:_self,在当前窗口打开窗口;_blank(默认值),在另外的新建窗口打开新窗口; [removed].href="https://www.jb51.net"; //在同当前窗口中打开窗口 ...
19.窗口:打开窗口window.open(), 关闭一个窗口:window.close(), 窗口本身:self 20.状态栏的设置:window.status="字符"; 21.弹出提示信息:window.alert("字符"); 22.弹出确认框:window.confirm(); 23.弹出输入提示框:...
因为一开始是 GET 请求,所以当传递的数据过大的时候,会报错 nginx 414 request-uri too long 客户端请求头缓冲区大小,如果请求头总长度大于小于128k,则使用此缓冲区 client_header_buffer_size 128k; 请求头...