Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Block script in IE

I have a fancy script that is nice, but not essential and surprise surprise, doesn't play nice with IE. How do I 'comment it out' for IE?

I know I can use the following to include statements for IE, but how do I exclude them?

<!--[if IE 6]>
Special instructions for IE 6 here
<![endif]-->
like image 656
jack Avatar asked Dec 02 '11 14:12

jack


People also ask

How do I stop script errors in Internet Explorer 11?

On the Tools menu, select Internet Options. If you can't see the Tools menu, press Alt to display the menus. On the Advanced tab, clear the Display a notification about every script error box, and then select OK.

How do I stop scripts from running?

Click the "Stop Script" button to stop the script from running. Stopping the script can prevent the browser from running out of memory or crashing. If this problem is only happening on one page and every other page is fine, a script on that one page is likely causing your problem.

How do I enable JavaScript in IE 11?

Internet Explorer Click Tools > Internet Options. Click the Security tab > Custom Level. In the Scripting section, click Enable for Active Scripting. In the dialog box that displays, click Yes.

How to enable or disable scripting in Internet Explorer?

In most cases, it will be “ Internet “. Select the “ Custom level… ” button. Scroll down to the “ Scripting ” area and select the radio button to “ Enable ” or “ Disable ” it “ Active scripting “. You may also opt for IE11 to “ Prompt ” you to allow scripts to run.

How to Disable Script Debugging in Internet Explorer?

You can disable script debugging in Internet Explorer. Step 1. Click Advanced tab in the Internet Options panel. Step 2. Look for Browsing section, tick Disable script debugging (Internet Explorer) and Disable script debugging (Other), uncheck Display a notification about every script error, and then click Apply.

What is blocking JScript and how do I enable it?

Blocking Jscript helps protect against malicious actors targeting the JScript scripting engine while maintaining user productivity as core services continue to function as usual. As a security best practice, we recommend that users disable the legacy JScript execution for websites in the Internet and Restricted Sites zones.

How to fix Internet Explorer script error Windows 10?

You can update your Internet Explorer from Windows Update option. You can start Internet Explorer, open the Tools menu, and then click Windows Update. Tip: You can go to Microsoft official site to download and install the latest version of Internet Explorer manually by yourself. That's all steps to stop Internet Explorer script error Windows 10.


1 Answers

Just use ! see here for more info

<!--[if !IE]>

or

<!--[if !(IE 6)]>
like image 111
ramblex Avatar answered Oct 05 '22 09:10

ramblex