当前位置:网站首页>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
边栏推荐
- LVM and disk quotas
- prometheus-federation-tls加密
- Selenium02
- 测试开发工程师成长日记015 - 最强20道测试面试题
- 大厂年薪50w+招聘具有测试平台开发能力的测试工程师
- Test Development Engineer Growth Diary 018 - Record of Required Questions for Test Interview (Continuous Update)
- 向量的导数运算和向量叉乘以及点乘的导数运算
- schur completement
- MongoDB-CUD没有R
- About memcache kernel, so one of the most popular
猜你喜欢
测试开发工程师成长日记010 - Jenkins中的CI/CD/CT(持续集成构建/持续交付/持续测试)

Multithreading basics (multithreaded memory, security, communication, thread pools and blocking queues)

测试开发工程师成长日记001 - 敏捷测试、CI/CD/CT、DecOps的一些介绍

STL源码剖析:class template explicit specialization代码测试和理解

STL源码剖析:临时对象的代码测试和理解

多线程进阶(CountDownLatch,死锁,线程安全集合类)

Network Protocol 01 - Basic Concepts

MongoDB-CUD没有R

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

MySql connecting to the server remotely
随机推荐
Huawei released "ten inventions", including computing, intelligent driving and other new fields
Linx common directory & file management commands & VI editor usage introduction
export , export default, import complete usage
Polygon 3D(三维平面多边形)的法向量的计算(MeshLab默认的计算)
Network Protocol 01 - Basic Concepts
测试开发工程师成长日记015 - 最强20道测试面试题
舒尔补(schur completement)
Multithreading basics (multithreaded memory, security, communication, thread pools and blocking queues)
Selenium02
prometheus-Federation机制配置
测试开发工程师成长日记010 - Jenkins中的CI/CD/CT(持续集成构建/持续交付/持续测试)
进程和计划任务管理
Mastering JESD204B (3) – Debugging of AD6676
Dachang's annual salary of 50w+ recruits test engineers with test platform development capabilities
(GGG)JWT
debian problem
numpy 多维数组ndarray的详解
MySQL主从复制配置搭建,一步到位
PXE efficient mass network capacity
New material under the plastic restriction order - polylactic acid (PLA)