How disable JS in MSIE 6?

M

MasonC

I find I cannot disable javascript in MSIE 6
I've Help'd, Google'd, and searched here to no avail.

<noscript>
You don't have javascript enabled
</noscript>

will not display for me.

Mason C
 
N

Nik Coughin

MasonC said:
I find I cannot disable javascript in MSIE 6
I've Help'd, Google'd, and searched here to no avail.

<noscript>
You don't have javascript enabled
</noscript>

will not display for me.

Mason C

It could be this. You can't disable JavaScript for scripts running off your
local machine, AFAIK.
 
D

DU

MasonC said:
I find I cannot disable javascript in MSIE 6
I've Help'd, Google'd, and searched here to no avail.

<noscript>
You don't have javascript enabled
</noscript>

will not display for me.

Mason C


Tools/Internet Options.../Security tab/Choose Internet Zone, say
Internet/Custom Level... button/Scripting category/Active
Scripting/Disable radio button

DU
 
M

MasonC

It could be this. You can't disable JavaScript for scripts running off your
local machine, AFAIK.

Thank you! That's the answer. I was working on code off line.

Mason C
 
R

Randy Webb

MasonC said:
Thank you! That's the answer. I was working on code off line.

No its not. Its irrelevant whether you are on or off line, you can still
disable it. See DU's post.
 
N

Nik Coughin

Randy said:
No its not. Its irrelevant whether you are on or off line, you can
still disable it. See DU's post.

Wrong. Try it. Get an .html file with some Javascript in it and put it on
your Desktop, or in My Documents, or anywhere else on your HDD for that
matter. Disable Javascript in IE using DU's instructions. Then open the
html file. Oh! The Javascript still works. I ran into this a while ago
while trying to test the <noscript> part of a web page.
 
J

Jim Ley

Wrong. Try it. Get an .html file with some Javascript in it and put it on
your Desktop, or in My Documents, or anywhere else on your HDD for that
matter. Disable Javascript in IE using DU's instructions.

Okay, modify DU's instruction for doing it in the zone which the
desktop is contained, you can block all javascript in IE in all zones,
you just have to do it!

Jim.
 
M

MasonC

Okay, modify DU's instruction for doing it in the zone which the
desktop is contained, you can block all javascript in IE in all zones,
you just have to do it!

Jim.

Please give *detailed* instructions. I've tried everything
I can think of. Javascript persists.

Mason C
 
G

Grant Wagner

MasonC said:
I'd like to hear from someone who has actually done it.

Mason C

Windows XP and IE6SP1, ymmv:

Start -> Run
type "regedit" (no quotes), hit enter
browser to
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
Settings\Zones\0
double-click "1400" in the right-pane
change the value from "0" to "3", click OK (use "1" to be prompted to
run script)

Now IE will not run client-side script and will display HTML content
between <noscript> and </noscript> in the "My Computer" Zone.

To verify this value is in fact the setting to disable ActiveScripting,
change the ActiveScripting setting for the "Internet" Zone and watch the
value of "1400" change under
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
Settings\Zones\3. For development, the easiest thing to do would
probably be to set it to always prompt (set the value of "1400" to "1")
under
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
Settings\Zones\0 but that might get annoying.

For something a little more advanced:

scripton.reg:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
Settings\Zones\0]
"1400"=dword:00000000

scriptoff.reg

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
Settings\Zones\0]
"1400"=dword:00000003

Double-clicking each .reg file will have the named effect.

Lastly, changing HKEY_CURRENT_USER to HKEY_LOCAL_MACHINE does *not*
affect all users (at least not if you don't reboot, and I didn't reboot,
so I don't know if rebooting overrides the behaviour of HKCU or not,
someone else can try that).

--
| Grant Wagner <[email protected]>

* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/author/dhtml/reference/dhtml_reference_entry.asp

* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-developer/upgrade_2.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top