当前位置:网站首页>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
边栏推荐
- Graph Computing 101: Types, Languages, and Systems of Graph Computing
- 图解关系数据库设计思想,这也太形象了
- 测试开发工程师成长日记001 - 敏捷测试、CI/CD/CT、DecOps的一些介绍
- Local Implicit Grid Representations for 3D Scenes详解
- 不会吧,Log4j 漏洞还没有完全修复?
- Software Testing Terminology - Scenario Testing
- 测试开发工程师成长日记008 - 浅谈一些Bug/用例管理平台/协作平台
- Network Protocol 01 - Basic Concepts
- Rodrigues:旋转矩阵的向量表达
- Test development engineer growth diary 016 - those things about the test
猜你喜欢
Test Development Engineer Growth Diary 010 - CI/CD/CT in Jenkins (Continuous Integration Build/Continuous Delivery/Continuous Testing)
Local Implicit Grid Representations for 3D Scenes详解
测试开发工程师成长日记010 - Jenkins中的CI/CD/CT(持续集成构建/持续交付/持续测试)
prometheus监控nacos
As a test leader, examine several aspects of job candidates
不会吧,Log4j 漏洞还没有完全修复?
RAID磁盘阵列
DNS域名解析服务
测试开发工程师成长日记018 - 测试面试必备题记录(持续更新)
CTO说不建议我使用SELECT * ,这是为什么?
随机推荐
Selenium01
MySQL common commands and mysqldump backup
prometheus-federation-tls加密
你被MySQL 中的反斜杠 \\坑过吗?
Test Development Engineer Growth Diary 007 - Bug Priority Definition and Filling Specifications
Mastering JESD204B (3) – Debugging of AD6676
Required request body is missing problem solving
Pioneer in Distributed Systems - Leslie Lambert
MongoDB-CUD without R
测开基础知识02
Test Development Engineer Growth Diary 018 - Record of Required Questions for Test Interview (Continuous Update)
Rodrigues:旋转矩阵的向量表达
Test Development Engineer Growth Diary 010 - CI/CD/CT in Jenkins (Continuous Integration Build/Continuous Delivery/Continuous Testing)
matlab机器学习_01
AI元学习引入神经科学,医疗效果有望精准提升
分布式系统中的开创者—莱斯利·兰伯特
大厂年薪50w+招聘具有测试平台开发能力的测试工程师
这个终端连接工具,碾压Xshell
The calculation proof of the intersection of the space line and the plane and its source code
Station B collapsed, what would you do if you were the developer in charge that night?