Tuesday, 3 November 2009

Javascript: Confirm logout and save document

function closeWindow() {
if (confirm('Are you sure you would like to logout?')) {
//document.forms['form1'].submit();
window.open('', '_self');
window.close();
};
}

No comments:

Post a Comment