how to call alert box using jsp -


i facing problem while calling alert box. can know procedure call box in jsp?

my function is

<script type="text/javascript" src="js/ufo.js"></script> <script  type="text/javascript">     function foon() {         alert("sorry! not valid user!! click here go login!!!");         history.back(1);     } </script> 

now how call foon() function inside if statement?

probably want like:

<c:if test="something"><script type="text/javascript">foon()</script></c:if> 

alternately embed alert right there, depends on need reuse.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -