Hi,
I have a index.jsp-------
<html>
<head>
<script type="text/javascript">
function myfunc(){
var fname=document.getElementById("fname");
var lname=document.getElementById("lname");
window.open("result1.jsp?fname="+fname.value+"&lname="+lname.value,"mywindow","width=200,height=200");
}
</script>
</head>
<body>
<form name="form1">
First Name:
<input type="text" name="fname" id="fname" />
Last Name:
<input type="text" name="lname" id="lname" />
<input type="button" value="click here" onclick="myfunc()" />
</form>
</body>
</html>
and result1.jsp---------
<html>
<body>
<form>
<input type="text" name="credential" value="${param.fname}" />
<input type="hidden" name="lastname" value="${param.lname}" />
<input type="password" name="password"/>
<input type="submit" value="click it" />
</form>
</body>
</html>
Now I want when i click the submit button control goes back to old index.jsp(not in this new window) page
how i can do that.
any body id concept is present?
please guide me
thanks in advance