document.write() is NOT what I need...

wxdqz

New Member
Hello All!

I'm using the following code to confirm a user's decision:

function AreYouSure() {
var agree=confirm("Are you sure you want to exit?\nClick OK to exit.\nClick CANCEL to remain on this page.")
if (agree)
window.close();
else
document.write();
}

The document.write() command is not returning the user to the page from which he tried to exit. What should the command be?

As always, thank you for your time and your help. I am most appreciative!

~Darron
 
Back
Top