In the code below, I am using QueryString to check the variable status.
If it is 'success' then it should display "deletion successful".

I am passing url = http://localhost:9999/EmModule/EmpForm.jsp?status=success

But, it is not displaying any alert.

Note: I am using JSP page, and am rookie in it.

Thank You

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>

<script type="text/javascript">
function scheck()
	var s=Request.QueryString("status"); 
		alert('Deletion Successful');

<body onload='scheck()' >
	<h1> Insert Employee Data </h1>
	<form action="Employee" method="POST" onsubmit="return validate_form(this)">
	<table border="1">
			<td><input type="text" name="EName"/></td>
			<td><input type="text" name="Dept"/></td>
			<td><textarea rows="2" cols="20" name="Add"></textarea></td>
				<input type="submit"/>


Wrong. That is ASP (Server-Side) code. It does not exist in javascript. You need to look at (which contains the querystring) and extract if from there OR you can use the code given at:

If you use that, then instead of:

var s=Request.QueryString("status");

you would need:

var s=queryString("status");