Disable Javascript on IE8 /IE7 (Internet Explorer) : Common Mistakes

September 4, 2009

I was surprised when one of our engineers asked me – “ How can we disable Javascript on Internet Explorer?” He was testing Javascript validation and precautions against bypassing this layer of validation. As usual he googled it up and tried something. But it would not work. When I arrived at his system he showed me what he was doing to disable javascript but it was still working.

There was just one thing he was over looking. This I guess is one of the common errors people face while disabling javascript on Internet explorer.

In case you do not know how to do it here is a picture guide for you.
1.Open your Internet Explorer browser window.
2.Go to the menu and click on TOOLS
3.Choose Internet Options. (See below; it might help)

Step One - Tools>Internet Options (Disable Javascript IE)
Step One - Tools>Internet Options (Disable Javascript IE)

Once you open the Internet Options then
4.Click the Security Tab. (Use the picture below as guide)

Step 2 >> Choose Security Tab (Disable Javascript IE)
Step 2 >> Choose Security Tab (Disable Javascript IE)

Now here is the trick. The Zones. By default the Internet Zone is selected. So if you proceed further you would be able to disable Javascript on websites that are live on internet. If you are developing / testing on local files then it would still be working. So choose what you want. In our case, since we were working locally we have chosen the Local Intranet option.

Finally
5. Scroll down till you find the Scripting Option.
6.On Active Scripting Radio Button choose Disable.(Use the screen shot for reference)

Step 3 >> Disable Active Scripting (Disabling javascript IE)
Step 3 >> Disable Active Scripting (Disabling javascript IE)

If your job is not done yet make sure your Javascript function is al right. Else curse me for wasting your time. If your job is done you can leave a comment below.

Cheers

17 Comments

  1. but this will disable all scripts in the page …
    for example … asp:LinkButtons wont work anymore (for me at lease).

  2. well rooturaj …. it’s my fault (and microsoft ppl’s)
    …i wanted to disable javascript and use “asp:LinkButton”s …
    and it didn’t work … after all (after viewing msdn) i found out that “asp:LinkButton”s don’t work at all with javascript disabled …
    .. so ..all in all it’s Microsoft guy’s mistake …;)
    thanx 4 asking ..anyway !!

  3. Sir, I disabled the script in IE 8 using above steps but javascript is still workin fine….

  4. In order to check validation, I disabled it both on Local host and internet and it worked than………

  5. Hi Jashminder.
    I personally tried the same approach on IE8 before putting it on my blog. I doubled checked it once more. It works.

    Assuming you are trying to validate a form and assuming you are calling a java script function to submit the form. Any direct submit buttons will post to the next page without fail and bypassing all your JS validation.

    Does that ring a bell anywhere?

  6. How do I turn off developer tools in IE8? Everytime I open a window, a developer tool window opens.

  7. i done all your instructions but yet javascript in my browser still don’t function to connect on my FB.Is other way to enable? thank you.

  8. Thank you for your extremely clear and easy-to-follow instructions. It is so rare in the tech world to find that. MUCH appreciated.

  9. Ye it works great. Thanks!
    Before I was only changing it on the Internet zone as well, thus the reason it didn’t work! 🙂

Comments are closed.

Latest Posts

Rooturaj Pattanaik

Technology & Business Consultant with customers across 6 countries. A doting father and loving husband writing about various topics like Technology, Travel, Society, Digital marketing, Investment consulting etc.

MY DICTIONARY PROJECT

I have started a new project called the Indic Dictionary. This will cover popular household words in India and what they are called in various languages. Eventually, I will make this an easy to use app where where people can easily find something like “hing in English” or “Tea Tree Oil in Hindi” or “carrom seeds in Urdu”.
Previous Story

Shortcut to instant fame and free promotion – get tata in your domain name

Next Story

RESTful time for PHP developers working with ADO.NET

Latest from Programming

Go toTop

Don't Miss