javascript - JS alert popup should stay on same page without reloading it -


the below alert popup displayed in case of error , user should stay on same page in order modify content of field. task have popup message when closed, let user on same page without reloading , showing him values put in fields.

....  else{     echo "       <script type='text/javascript'>     alert ('error message.'); return false;     </script>     ";} 

i put 'return false' in order avoid redirect doesn'work.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -