“Disable Script” option greyed out in IE developer tools

I found this problem the other day, debugging a site I set the disable script option on the developer toolbar to check for none JavaScript browser support. Then later I wanted to use other sites as normal but found that all JavaScript was still disabled. Opening the developer tools, the option was greyed out in the developer tools of Internet Explorer thus I was unable to get JavaScript running again in the browser. I asked around the office to find others had seen this but never worked out how to fix it.

Disable script greyed out

I went experimenting, what I discovered was that this option is only available if the current site has trust. Try adding the site into trusted sites or Intranet under I was back in business.

Set the options in Internet Options

Tools>Internet Options>Security>Tusted Sites, Sites button, Add.

internet options

You MUST refresh the page for this to take effect.

The script option is available again. This was even though this site was on our intranet. Thus the automatic detection of Intranet sites in our scenario is not adequate.

Diable script option available

Comments (6) -

  • Makes no sense it should work like this. IE8 and 7 dev tools let you disable scripts no matter the security setting.
  • Don
    Thank you for this. Definitely not intuitive ... or easy to find resolution to.
  • If you disable IE Protected Mode under the Tools-> Security tab in internet options the option becomes available for disabling script via the IE developer toolbar, no need to add trusted sites.
  • makes no sense to be able to disable scripts on an already rendered page ONLY if that site / domain is trusted before.....

    more security risk is in enabling / executing scripts on non-trusted domains, not to disable them...

    maybe I miss something here...

    no (other) comment
  • Razvan is right on. You'd think, if anything, scripts would be disabled by default, and only specifying certain sites as "trusted" would then allow you to enable them. IE is full of pleasant surprises as ever.

    Thanks for sharing the solution.
  • That's Microsoft logic.

Add comment