I want my home clear of all W3C errors. I have one final error:
http://validator.w3.org/check?uri=http://storeboard.com
Here is the code for that error:
if (ErrorFound == 0)
{
if (document.frmRegister.tbPassword.value.length < 8)
{
alert("Password must be at least 8 characters in length.");
document.frmRegister.tbPassword.focus();
ErrorFound = ErrorFound + 1
}
}
Any ideas how I can keep the same functionality but prevent the W3C Error?
Many Thanks,
Paul
You can put your script in a
CDATAblock, which will cause it to be ignored by the XML parser: