Home  >  Article  >  Web Front-end  >  What to do if the browser does not support JavaScript

What to do if the browser does not support JavaScript

coldplay.xixi
coldplay.xixiOriginal
2021-04-08 15:57:5315397browse

Solution to the problem that the browser does not support javascript: First open the [Internet Options] dialog box and select the [Security] tab; then click the [Custom Level] button; finally, change [Java Applet Script] and [Active Scripting] Both options are set to enabled.

What to do if the browser does not support JavaScript

The operating environment of this tutorial: Windows 7 system, JavaScript version 1.8.5, DELL G3 computer.

Solution if the browser does not support javascript:

1. Enable IE browser’s support for javascript

(1) Select IE browser Click the "Tools"/"Internet Options" command in the menu to open the "Internet Options" dialog box, select the "Security" tab, select the Internet security setting item, click the "Custom Level" button to open the dialog as shown in the figure frame.

What to do if the browser does not support JavaScript

(2) As shown in the picture above, set the two options of "Java applet script" and "Active script" to enabled state, click the OK button. Enable IE browser to support javascript scripts

2. Enable IE browser to support local javascript

IE browser divides web pages into Internet, local Internet, trusted sites and trusted sites. Limits the site to 4 zones, but does not include local pages. Usually in the XP system, when opening a webpage containing JavaScript in the IE browser, if the user wants to execute the JavaScript script contained in the webpage, select the command Allow blocked content in the pop-up shortcut menu, and the webpage can be successfully executed. To permanently eliminate this security prompt, you need to make the following settings:

Select the "Tools"/"Internet Options" command in the IE browser menu, open the "Internet Options" dialog box, and select the "Advanced" tab , click the OK button in the "Allow activity to run files on my computer" and "Allow activity content from CDs to run on my computer" checkboxes in the security options settings area (referring to XP only). solve.

3. Use comment symbols to verify whether the browser supports the javascript script function

If you are not sure whether it supports it, you can use the comment symbols provided by HTML to verify. The comment symbols provided by HTML start with "". If you write javascript script inside this comment symbol. For browsers that do not support JavaScript, the written JavaScript script will be processed as a comment

4. Apply the

The above is the detailed content of What to do if the browser does not support JavaScript. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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