title: In Javascript how can I change an alert window to display that alert next to an input box
body: <p>My friend and I are making a data validation program. If you enter in data that the program will not accept (example such as putting numbers in a name field) you get a windows alert telling you that is not valid. We decided we want to change this so that instead of a windows alert there will be an empty table cell to the right of each of the form elements that displays that your data is not valid. How could I change this? Attaching code below. </p>
  
  <pre><code>function fNameValidation()
  {
  if (document.forms[0].fName.value.length==0)                //First name data validation
  {                                                           //check for any entry
  alert('Please enter your first name.');
  document.forms[0].fName.focus();
  return;
  }
  </code></pre>