Dear Members
I need very urgent help on the following code.
I have a login form which calls the "adminLog(obj)" function and logged the user and where as window.opener will contact the object for window.open(";....")
and I have another onload method called "Set_focus()" on refreshing the page it will check for window.opener is null or not and if its not null then it will close the associtate window. Follow the code below please.
function adminLog(obj)
{
var loginid = encode64(obj.loginidAdmin.value);
var pswd = encode64(obj.passwdAdmin.value);
obj.reset();
window.opener =
window.open("UserAdminPage.jsp?loginid="+loginid+"&passwd="+pswd);
}
function set_focus()
{
if(window.opener != null)
{
window.opener.close();
}
else
{}
document.forms[0].reset();
document.forms[0].elements[0].focus();
}
Above code works perfect for IE but doesn't work for Firefox, can any one help me on this, I want to close the window which gets open by window.open, when ever user refresh the parent window, and this work fine in IE but its not working in Firefox. ANY HELP IS HIGHLY APPREICATED.
Thanks in advance.
Mohammed Zubedi
mohammed.zubedi@xius-bcgi.com