hi babs, you could also use 'innerHTML', but it will not work in 'not-so-dhtml' browser like netscape 4.7.x :-( e.g.: create a function to display the error message and call the function on your validation script. <script language="Javascript"> function displayError(theMessage) { document.getElementById('error').innerHTML = theMessage; } function validateForm (theForm) { var error = false; if (theForm.username.value == "") error = true; if (error ) { displayError ('put your name please'); return false; } else return true; } </script> put id on <td> or <div> in your jsp page where you want to display it. e.g.: <tr><td id="error"> </td></tr> and......put onsubmit="return validateForm(this);" on your <form> tag.
hope it'll help VR -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>