I have a lot of nicely formatted HTML to be displayed for visitors WITHOUT script (/enabled), and a second set of HTML for those WITH script.
The <noscript> tag allows me to separate the HTML for those without script,
How can I separate the HTML for those with script? (ie not run for those without script enabled.
The only way I've found so far is:
[HTML]...
<noscript>
This should only be diplayed when scripting is not configured
</noscript>
<script>
<!--
document.write(" X This should only display when script IS configured X ");
// -->
<./script>[/HTML]
but requires me to put all the 2nd set of HTML between the X's - all in one long VERY ine
Ideally, of course I would like to keep the good formatting for ease of maintenance/understanding.
Is there a much better way (I hope ;-) - thanks