January 21st, 2002, 12:32 AM
-
If JavaScript is disabled
I know there have been many posts covering this topic, but I'm still not quite sure how to do what I want to do. Basically, all I want to do is if the person visits my home page and doesn't have JavaScript enabled, then a message will appear on the screen that says that they need to enable it in order to view my site. I'm having problems because I don't know where the <noscript> stuff shows up on the page. I guess I'll wait for help first before trying to go into the details of how I want it to look. Thanks!
January 21st, 2002, 02:49 AM
-
the <noscript> tags only work for browsers with doesn't support JS or have it enabled, so just pretty much use your (java enabled) browser and remove the javascript section and the opening and closing <noscript> tags and the text will be there.
January 21st, 2002, 09:22 AM
-
Okay. And if I wanted it to be in place of some stuff that uses JavaScript, I'd put the <noscript> around the warning and <script> around the JavaScript stuff, right? Because the JavaScript stuff has some regular pictures, so those would show up and I don't want them to.
January 21st, 2002, 03:16 PM
-
there's no point in puttin noscript tags around the script tags...
PHP Code:
for JS disabled browser
this:
<script language=Javascript>
<!--
//blah blah blah
//-->
</script>
<noscript>
You can see me!
</noscript>
is same as:
You can see me!
January 21st, 2002, 07:23 PM
-
You misunderstood what I said, but alright.