I have a site which requires JS to be switched on. I would like the home page to display different content if JS isn't switched on, as below.
However NS4 gets to the document.write bit and stops.
I have tried it with and without the window. prefix and with and without the open() and close() lines all to no avail, can anyone help?
Code:<HTML> <HEAD> <TITLE>Test Page</TITLE> </HEAD> <BODY> <P>Text At Top Of Page</P> <SCRIPT LANGUAGE=javascript> <!-- window.document.open() window.document.writeln("Javascript is on") window.document.close() //--> </SCRIPT> <NOSCRIPT LANGUAGE=javascript> Javascript is off </NOSCRIPT> <P>Text At Bottom Of Page</P> </BODY> </HTML>




Reply With Quote