1. Firefox
Gecko is the Firefox rendering engine. The original gecko was developed as part of a generic Mozilla browser, and the first browser to use the Gecko engine was Netscape6;
We can use the user agent detection: The following JS code:
The role of the object, so all variables/functions declared in the global scope become properties and methods of the Window object;/PS: Attempting to access an undeclared variable throws an error, but by querying the Window object, you can know if
I. IntroductionSometimes, you may need a customized browser. In this case, you can freely add some novel but nonstandard features to a browser. As a result, you finally have a new but nonstandard browser. Web browser controls are only browser
Usually there are two methods to choose when the browser is closed: 1. onUnload 2. onbeforeunload
Because 1 is executed in different browsers and some are not executed, it is usually handled in the onbeforeunload event.
This event occurs in many
1. Browser cache Each time a Web site is opened, the content of the page is cached to the user's machine. If the content needs to be reloaded in other pages, the browser loads the cache instead of downloading the content again. If some Web store
Front Desk://When the page is closed, the method is triggeredTo do what you want in this method.window.onbeforeunload=function () {alert ("Close browser"); }//But it will also be triggered after the refreshBackstage:Sessionscanner Scan
Use Ajax requests with caution to detect nonexistent Resources
Introduction
I don't know how many of you remember the pattern of the head request described in foundations. Of. Ajax of apress?
Yes, you can use xhr to send a request to a resource
Wireshark is a similar tcpdump sniffer software, the interface is more user-friendly, today I use it to detect an HTTP connection process.After installation, first configure, select Capture->options, first set the network interface you want to sniff,
The BOM, also known as the browser object model, provides a number of objects for accessing the browser's functionality, which is irrelevant to any web content;BOM lacks the specification, each browser provider according to own idea expands it, then
The browser object Model (BOM) gives JavaScript the ability to "talk" to the browser. There is no formal standard for the browser object model (Browser object Model,bom). Because modern browsers (almost) implement the same methods and properties of
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.