Right, I see you're opening a popup window. From the child window, use window.opener.document.forms["form12"].elements["signIN"].disabled = false.
Sorry, but its not working. i thing I'm doing something wrong:
[HTML]<center>
User Name: <input type="text" name="name"><p></p>
Password: <input type="password" name="psswd">
<p></p><input type="image" src="Classic2.GIF" onClick="getValue()">
<input type="image" src="Classic.gif" onClick="exit()">
</center>
<script language="JavaScript">
function getValue()
{
var str1 = document.Forum.name.value;
var str2 = document.Forum.psswd.value;
var url = "4.jsp?name="+str1+"&psswd="+str2+"&status=log in";
window.open(url,"_blank");
window.close();
}
function exit()
{
window.opener.document.forms["form12"].elements["signIN"].disabled = false;
window.close();
}
</script>[/HTML]
When i clicked on cancel, then exit function called by that event. after that nothing is happened. i used jsp for database connection. when it called jsp file there i check that username and password. how can i check that username and password without opening that jsp page? there is no need of open that page. again if login failed how can i enabled sign-in button from first page? i am not getting that ajax for database connectivity.