当前位置:网站首页>The usage of window.open(), js opens a new form
The usage of window.open(), js opens a new form
2022-07-30 07:51:00 【cplvfx】
Syntax:
window.open(URL,name,specs,replace)Parameter description:
| URL | Optional.Open the URL of the specified page.If no URL is specified, open a new blank window |
| name | Optional.Specify the target property or the name of the window.The following values are supported:
|
| specs | Optional.A comma-separated list of items. |
| replace | Optional.Specifies specifies whether the URL loaded into the window creates a new entry in the window's browsing history, or replaces the current entry in the browsing history.The following values are supported:
|
specss supports the following values:
| channelmode=yes|no|1|0 | Whether to show the window in theater mode.Default is none.IE only |
| directories=yes|no|1|0 | Whether to add a directory button.The default is yes.IE only |
| fullscreen=yes|no|1|0 | Whether the browser displays full screen mode.Default is none.A window in full screen mode must also be in theater mode.IE only |
| height=pixels | The height of thewindow.min.value is 100 |
| left=pixels | Left position of the window |
| location=yes|no|1|0 | Whether to display the address field. The default value is yes |
| menubar=yes|no|1|0 | Whether to display the menu bar. The default value is yes |
| resizable=yes|no|1|0 | Whether the window can be resized. The default value is yes |
| scrollbars=yes|no|1|0 | Whether to display the scroll bar. The default value is yes |
| status=yes|no|1|0 | Whether to add a status bar. The default value is yes |
| titlebar=yes|no|1|0 | Whether to show the title bar. Ignored unless an HTML application or a trusted dialog is called. Default is yes |
| toolbar=yes|no|1|0 | Whether to display the browser toolbar. The default value is yes |
| top=pixels | Position of the top of the window. IE browser only |
| width=pixels | Window width.min.value is 100 |
Instance
Open www.runoob.com in a new browser window:
function open_win() {window.open("https://www.runoob.com");}The following example opens a window blank page in a new browser:
function openWin(){myWindow=window.open('','','width=200,height=100');myWindow.document.write("This is 'my window'
");myWindow.focus();}Details
边栏推荐
- 05-Theos
- prometheus监控mysql
- Test Development Engineer Growth Diary 010 - CI/CD/CT in Jenkins (Continuous Integration Build/Continuous Delivery/Continuous Testing)
- 多线程进阶(CountDownLatch,死锁,线程安全集合类)
- STL source code analysis: conceptual understanding of iterators, and code testing.
- Pioneer in Distributed Systems - Leslie Lambert
- PXE efficient mass network capacity
- SE_01
- 手机端滚动至页面指定位置
- debian vsftpd + ssl
猜你喜欢

阿里二面:列出 Api 接口优化的几个技巧

Detailed explanation of numpy multidimensional array ndarray

Process and Scheduled Task Management

DHCP principle and configuration

Station B collapsed, what would you do if you were the developer in charge that night?

export , export default, import complete usage

阿里二面:Redis有几种集群方案?我答了4种

作为测试leader,考察求职者的几个方面

The Society of Mind - Marvin Minsky

阿里二面:Sentinel vs Hystrix 对比,如何选择?
随机推荐
MongoDB - Introduction, Data Types, Basic Statements
prometheus-basic_auth加密配置
不会吧,Log4j 漏洞还没有完全修复?
新人误删数据,组长巧用MySQL主从复制延迟挽回损失
你被MySQL 中的反斜杠 \\坑过吗?
export , export default, import complete usage
As a test leader, examine several aspects of job candidates
(GGG)JWT
AI can identify race from X-rays, but no one knows why
MySQL common commands and mysqldump backup
Selenium01
分布式系统中的开创者—莱斯利·兰伯特
Camera coordinate system, world coordinate system, pixel coordinate system conversion, and Fov conversion of OPENGLDEFocal Length and Opengl
MongoDB - query
向量的导数运算和向量叉乘以及点乘的导数运算
空间平面相交的直线的计算及其源码
Data types of Redis6
LVM和磁盘配额
Linx common directory & file management commands & VI editor usage introduction
Network Protocol 01 - Basic Concepts