Posted on: 3/7/2013 10:46:49 AM | Views : 262

Dear All,
I wanted to close current web form and open a new window after a click of a button. The below code works fine with IE and Chrome but does not work in Mozilla firefox.
function CloseCurrentAndOpenNewWindow() { url = url + "&ScreenWidth=" + CalulatedWidth + "&ScreenHeight=" + CalculatedHeight + "&OffSet=" + offset * 1 + "&DomainName=" + document.domain; var sWinObj = window.open(url, "localess", sWinAttributes); sWinObj.moveTo(-offset, -offset); sWinObj.resizeTo(screen.availWidth + (2 * offset), screen.availHeight + (2 * offset)); sWinObj.focus(); window.open('', '_self', ''); window.close(); } Can anybody know what is an issue with this code in Mozilla ?
I tried setTimeout method also but no success.
Best Regards,
Kiran
 
...

Go to the complete details ...