I am facing problem while calling the alert box. Can I know what is the procedure to call the box in JSP?
My function is
<script type="text/javascript" src="js/ufo.js"></script>
<script type="text/javascript">
function foon() {
alert("Sorry! you are not a valid user!! click here to go back to login!!!");
history.back(1);
}
</script>
Now how to call foon()
function inside if statement?