Entry
how to call javascript function from jsp
Apr 25th, 2006 08:00
Shoaib Khan, dinesh albert,
JSP:
----------------------------------------------------------------------
<script language="javascript">
function submit()
{
alert("Hello i am in Submit Function");
}
</script>
/*
now this is the submit button of your form. Just like this you can call
this on any available event of some other component
*/
<input name="submit" type="submit" value="Submit" onClick="submit()">
----------------------------------------------------------------------
Muhammad Shoaib Khan
01FB007
OPSTeC College of Computer Science
Lahore
Pakistan