js中的window.open返回object的错误的解决方法
时间:2024-04-17 09:52:27
解决window.open后返回object的错误
<a href="javascript:void(window.open('','','width=200,height=200'))">window.open()</a>
只在js的外层加上一个void不带返回参数的声明.
顺便在这里将window.open函数的参数使用也列出来:
window.open函数参数列表
window = object.open([URL ][, name ][, features ][, replace]]]])
URL:新窗口的URL地址
name:新窗口的名称,可以为空
featurse:属性控制字符串,在此控制窗口的各种属性,属性之间以逗号隔开。
fullscreen= { yes/no/1/0 } 是否全屏,默认no
channelmode= { yes/no/1/0 } 是否显示频道栏,默认no
toolbar= { yes/no/1/0 } 是否显示工具条,默认no
location= { yes/no/1/0 } 是否显示地址栏,默认no
directories = { yes/no/1/0 } 是否显示转向按钮,默认no
status= { yes/no/1/0 } 是否显示窗口状态条,默认no
menubar= { yes/no/1/0 } 是否显示菜单,默认no
scrollbars= { yes/no/1/0 } 是否显示滚动条,默认yes
resizable= { yes/no/1/0 } 是否窗口可调整大小,默认no
width=number 窗口宽度(像素单位)
height=number 窗口高度(像素单位)
top=number 窗口离屏幕顶部距离(像素单位)
left=number 窗口离屏幕左边距离(像素单位)
标签:window.open,object
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
python快速排序的实现及运行时间比较
2022-11-30 20:41:27
![](https://img.aspxhome.com/file/2023/3/90523_0s.png)
SqlServer应用之sys.dm_os_waiting_tasks 引发的疑问(上)
2024-01-12 15:24:51
![](https://img.aspxhome.com/file/2023/6/88266_0s.png)
Python开发虚拟环境使用virtualenvwrapper的搭建步骤教程图解
2022-02-08 00:33:29
![](https://img.aspxhome.com/file/2023/5/107945_0s.png)
MySQL实现清空分区表单个分区数据
2024-01-14 03:45:34
![](https://img.aspxhome.com/file/2023/3/117833_0s.jpg)
python使用pygame实现笑脸乒乓球弹珠球游戏
2021-07-26 09:49:47
![](https://img.aspxhome.com/file/2023/3/87473_0s.jpg)
Python海象运算符超详细讲解
2023-08-04 17:26:19
![](https://img.aspxhome.com/file/2023/2/102762_0s.jpg)
K最近邻算法(KNN)---sklearn+python实现方式
2023-09-14 15:29:31
![](https://img.aspxhome.com/file/2023/9/90769_0s.jpg)
MySQL5.7的安装与配置详细操作步骤
2024-01-24 01:32:38
![](https://img.aspxhome.com/file/2023/0/77320_0s.png)
python爬取网易云音乐排行榜实例代码
2023-07-24 09:26:52
![](https://img.aspxhome.com/file/2023/4/133204_0s.png)
如何利用PyQt5制作一个简单的登录界面
2023-11-18 20:36:31
![](https://img.aspxhome.com/file/2023/2/93532_0s.jpg)
后工业时代的后规范思考
2009-06-03 20:30:00
优化SQLServer数据库服务器内存配置的策略
2009-05-13 10:25:00
基于Python中random.sample()的替代方案
2021-01-16 18:41:07
![](https://img.aspxhome.com/file/2023/3/103303_0s.jpg)
Python对HTML转义字符进行反转义的实现方法
2022-07-27 08:44:34
![](https://img.aspxhome.com/file/2023/6/103286_0s.jpg)
python操作xlsx格式文件并读取
2021-07-01 20:03:26
![](https://img.aspxhome.com/file/2023/7/110257_0s.png)
JavaScript实现网页计算器功能
2024-04-17 10:03:41
![](https://img.aspxhome.com/file/2023/5/136395_0s.jpg)
sqlserver 2000 远程连接 服务器的解决方案
2024-01-24 03:23:12
Python文本终端GUI框架示例详细讲解
2021-05-19 22:47:12
![](https://img.aspxhome.com/file/2023/9/135449_0s.png)
Numpy ndarray 多维数组对象的使用
2023-08-09 07:01:54
![](https://img.aspxhome.com/file/2023/9/63979_0s.png)
深入讨论Python函数的参数的默认值所引发的问题的原因
2022-08-03 00:54:31