[thelist] dynamically creating comments with JavaScript & document.write
Matt Wenham
matt at mattwenham.co.uk
Mon Feb 25 05:48:01 CST 2002
> I currently have a problem trying to dynamically create a comment
> using JavaScript's document.write. The idea is to have some lines
> commented out if a certain if-clause is true.
I'd almost certainly do it the other way around: only document.write the
code in question if the if-clause is false. You can use the <noscript>
block to control the behavior when scripts aren't enabled.
Matt...
More information about the thelist
mailing list