Error trigger to close the browser window

Error trigger to close the browser window

How can I use a trigger to catch a logout of webapp and just close the window?
 

Many times when you click on a logout button from a webapp, it may kill cookies that you don’t want to be deleted. You might be able to catch this with a sso form using the Error trigger to catch the URL.

Then for the Error page, have it go to /close.html 

close.html would contain the following HTML and be placed on the relay in the /stoneware/webserv directory. 


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
<html> 
<head> 
<title>Close</title> 
</head> 
<body ="window.close()"> 
<a href=" script:window.close()">Close</a> 
</body> 
</html> 


You can also try the URL /util/doClose.html or /util/closeDohoWindow.html