
<%--
Document : b
Created on : Oct 16, 2012, 8:48:44 PM
Author : SAMSUNG
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<script type="text/javascript">
function abc()
{
window.alert("Hello");
f.action"index.jsp";
}
function xyz()
{
window.alert("Hi");
}
</script>
<form name="f">
<input type="submit" value="First" name="b1" onclick="abc()"/>
<input type="submit" value="Second" name="b2" onclick="xyz()"/>
</form>
</body>
</html>
I Am Writing The FOllowing COde Its Executing But On CLicking The Button Nothing Happens Please Help Me With Both The Programs