JavaScript: Displaying Message after a Action, say Form Submit
You need to display a message after any action to confirm about successful completion of the action or for some error.
Suppose user has submitted a web form and you got everything fine. So in PHP you have this script:
<?php
if (count($_POST))
{
// checking / validation etc
//… (Continue)