[thelist] IE and the NOSCRIPT tag

Dan Frey danieljohnfrey at yahoo.com
Thu Apr 8 21:45:08 CDT 2004

Kind of a hack, but try this - 

Define a style called .jsHidden, like so:

 display: none;

Put a JS function in your page like so:

function hideOnLoad(v_tagName) {
 tagsToHide = document.getElementsByTagName(v_tagName);
 for (i=0; i<=tagsToHide.length; i++) {

and then - <body onload="hideOnLoad('input')">

If JS isn't enabled, it'll never run, and your tags will stay visible.
Otherwise, they're hidden.  I guess it's one way around it.. 

Good luck,
-----Original Message-----
From: thelist-bounces at lists.evolt.org On Behalf Of Tanner Burson
Subject: [thelist] IE and the NOSCRIPT tag

I've been fighting all day with an issue involving IE and the noscript tag.

In IE the following code 
<noscript><input type="text" name="something" value="hi" /></noscript>
Displays the text box regardless of whether javascript is enabled or
disabled.  It seems to do this with most any element other than straight
Has anyone had any experience with this or have any ideas?

More information about the thelist mailing list