Hi,
I am opening a popup as
window.showModalDialog(
"CodePopup.aspx", WinSettings);
window.showModalDialog(
"CodePopup.aspx", WinSettings);
In the Popup page i have two buttons Submit and Close. When i click on Close I need to close the window and return to parent page.Now if I click on Close the same page (popup page) laoding once again. it's not closing.
Please Help me.
Regards,
MZee
v
Leo GlzPosted Sep 19, 2012, 10:12 AM
By javascript=window.open or window.showxxxxdialog
By a URL=has referrer
Suggestion:
if(!window.opener){
//hide your close button as it doesn't work.
}
cheers...