Posted on: 7/28/2015 4:03:02 PM | Views : 734

Hello.

I have a master page, master.Master, with two content pages, page1.aspx and page2.aspx.
Is there a way to close browser, let's say from a button in any on the content (child) pages?
I created a button in both child pages, so the user could leave at any time.
When the user clicks button, browser should close, with or without prompt (preferably without)...

I've tried something like this (both ways), but it's not working...
function closeWindows() { //window.parent.close(); //window.master.Master.close(); }
Thanks in advance!

Go to the complete details ...