To alert the user of something (trivial or not): The alert box has no consequences. Programmers often use them to test their script flows. To prompt the user for an input: | The input would then be used in the script for some purpose. To confirm with the user on an action: | The script will then respond to the user's action (OK[true] or Cancel[false]) MORE TO COME IN NEXT UPDATE javascript - basic stuffs |