PDA

View Full Version : How to Dim out a line of HTML code



John W
07-11-2008, 08:10 PM
Hi there

Id like to Dim out a line of html code, so I can switch it on and off as I require the scripting code to work.

So, what text do I put before the line of code to get websites to ignore that particular line, and thus switch it off.

Thanks

John in Mosgiel.

dyewitness
07-11-2008, 08:18 PM
<!-- this is an html comment -->

or

<!--
this is a comment
over multiple
lines
-->

tonyluo
07-11-2008, 11:22 PM
<!-- This is a comment for javascript -->

<!--
var arr = new Array(3);
arr[0] = "Jani";
arr[1] = "Hege";
arr[2] = "Stale";

document.write(arr + "<br />");
document.write(arr.push("Kai Jim") + "<br />");
document.write(arr);
-->