当前位置:网站首页>Summary browser object
Summary browser object
2022-07-24 06:37:00 【Slugs are not alone】
Browser object
The interview suddenly asked the methods of these objects , I won't remember a few for a while , To sum up :
One 、Window object
Window Object represents an open window in the browser .
Window Object methods :
| Method | describe |
|---|---|
| alert() | Display a warning box with a message and a confirm button . |
| atob() | Decode one base-64 Encoded string . |
| btoa() | Create a base-64 Encoded string . |
| blur() | Move keyboard focus away from the top window . |
| clearInterval() | Cancel from setInterval() Set up timeout. |
| clearTimeout() | Cancel from setTimeout() Method set timeout. |
| close() | Close the browser window . |
| confirm() | Displays a dialog box with a message and a confirm and Cancel buttons . |
| createPopup() | Create a pop-up window . |
| focus() | Give keyboard focus to a window . |
| getSelection() | Return to one Selection object , Indicates the text range selected by the user or the current position of the cursor . |
| getComputedStyle() | Gets the... Of the specified element CSS style . |
| matchMedia() | This method is used to check media query sentence , It returns a MediaQueryList object . |
| moveBy() | Moves the window to the specified pixel relative to its current coordinates . |
| moveTo() | Move the upper left corner of the window to a specified coordinate . |
| open() | Open a new browser window or find a named window . |
| print() | Print the contents of the current window . |
| prompt() | Displays a dialog box that prompts for user input . |
| resizeBy() | Resize the window to the specified pixel . |
| resizeTo() | Resize the window to the specified width and height . |
| scrollBy() | Scrolls content according to the specified pixel value . |
| scrollTo() | Scroll content to specified coordinates . |
| setInterval() | According to the specified period ( In milliseconds ) To call a function or evaluate an expression . |
| setTimeout() | Call the function or computing expression after the specified millisecond count. . |
| stop() | Stop page loading . |
| postMessage() | Secure cross source communication . |
Two 、History object
History Object contains user ( In the browser window ) Visited URL.
History Object methods :
| Method | explain |
|---|---|
| back() | load history The previous one in the list URL |
| forward() | load history Next... In the list URL |
| go() | load history A specific page in the list |
3、 ... and 、Location object
Location Object contains information about the current URL Information about .
Location The object is window Part of the object , It can be done by window.Location Property to access it .
Location Object methods :
| Method | explain |
|---|---|
| assign() | Load a new document |
| reload() | Reload the current document |
| replace() | Replace the current document with a new document |
边栏推荐
- Go environment construction and start
- Common commands and package management of go language
- Backup MySQL database with bat script under Windows
- 系统安全及应用
- 自定义zabbix agent rpm包
- Jenkins自动化无人值守运行(上/下)
- Tensorflow GPU installation -- 056
- Batch operation of generating MySQL statements from Excel
- Rsync (I): basic commands and usage
- 微信TBS在线安装内核失败的解决方法
猜你喜欢

Iterators and generators

进程和计划任务管理

联合国农产品数据分析

API流程和代码结构

系统安全及应用

Leetcode sword finger offer jz73 flip word sequence

Summary of ten common vulnerabilities (principle, harm, defense)

Flink time stream processing

Leetcode sword finger offer jz23: the entry node of the link in the linked list

Website B video is embedded in the web page, and relevant controls are hidden
随机推荐
[award issuance] the results of the first essay solicitation activity in oneos zone were announced
Flink production environment configuration recommendations
进行挂载永久挂载后无法开机
Transition effect
Solution of forgetting root password in mysql5.7 under Windows
MeterSphere一站式开源持续测试平台
Batch implementation of key based authentication using sshpass
PXE technology network installation
Custom MVC 2.0
Responsive page
Write cookies, sessionstorage, localstorage and session at will
实验:磁盘配额操作
Leetcode sword finger offer jz25 merges two sorted linked lists
目录和文件管理
Multiple types of functions
RESTful API介绍
Luckyframeweb testing platform (a full latitude free open source testing platform that supports interface automation, Web UI automation, APP automation, and distributed testing)
Top 10 vulnerability assessment and penetration testing tools
Do not rent a server, build your own personal business website (how to buy a domain name)
Customize ZABBIX agent RPM package