Home > Web Front-end > JS Tutorial > How to prevent the browser from running javascript scripts_javascript tips

How to prevent the browser from running javascript scripts_javascript tips

WBOY
Release: 2016-05-16 15:31:02
Original
1444 people have browsed it

If you want your browser to prohibit running JavaScript scripts on web pages, you can set your browser as follows:

【1】: Open IE browser, then select [Tools]--> [Internet Options]-->[Security]-->[Custom Level] and then pull down in the opened form Scroll bar and find the "Script" option. The first item is the Java applet script. Just select "Disable" among the three options below. As shown below:

【2】: However, please note that once this item is disabled, although the security of the system can be improved, some functions of the web page will also be blocked. For example, JavaScript scripts can be used in the programs you write. Code that opens a new window, or code that uses JavaScript scripts to close a page. Once the browser disables JavaScript scripts, these functions will also be blocked.

【3】: Also note that when your program has code that opens a new page through JavaScript scripts, sometimes these functions will not work. The following situations will cause such problems:

(1): The browser prohibits running JavaScript scripts, as mentioned above

(2): Some plug-ins are installed in the system to block spam web pages. Because the window.open method is used to open a new form using JavaScript, some plug-ins will use this to block new forms opened using this method

(3): Some firewalls may also have an impact

Through the above steps, you can easily solve the problem of disabling javascript in your browser. It is very simple. I hope you like it.

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template