Click to See Complete Forum and Search --> : Disabling Java Sript in Internet Explorer


toonist
04-21-2003, 08:38 AM
I am trying to diable Java script in IE version 6 to test applications. I am using the following script:

<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
<!-- Hide script from old browsers

document.write("Java is ")
if (!navigator.javaEnabled()) {
document.write("not ")
}
document.write("enabled.")

// End hiding script from old browsers -->
</SCRIPT>
<NOSCRIPT>
JavaScript is not enabled.
</NOSCRIPT>

But even after I disable Active Scripting in the secrity options IE still runs the script.

How can I disable Javascript in IE.

Thanks in adavace.

dmason165
04-21-2003, 09:47 AM
I don't know what it is, but I have tried disabling JavaScript to test my codes too, but to no avail:mad: I'm pretty sure we're at the day and age where MS has realized the dependency of JavaScript for a happy Internet experience and probably has made it so that you can't disable JS, even if you want to. For web developers, like you and I, it's a pain in the a**, but if you think about it, why would anyone really WANT to disable JS?? Sucks I know, but what can you do? Anyway, if you find out how to do it, please post with how you did it.

Good luck!

~dmason165

Charles
04-21-2003, 10:20 AM
Originally posted by dmason165
[W]hy would anyone really WANT to disable JS??
Some people cannot browse the web using JavaScript because of their disabilities. Others of us simply cannot stand our windows being resized, mouse trails and other abominations.

Get a hold of Opera (http://www.opera.com/). You can quickly toggle JavaScript and you ought to be using several different browsers when you develop anyway.

AdamGundry
04-21-2003, 10:44 AM
But even after I disable Active Scripting in the secrity options IE still runs the script.
IE doesn't react to changes in the security options until you close all open browser windows and then reopen them (I think). Try doing that, and see if it works.

It's good you are testing without JS, but Charles is right - test in other browsers such as Opera.

Adam