Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

force no click on 'X'

2:32 am on Sep 20, 2007 (gmt 0)

Junior Member

10+ Year Member

joined:Apr 14, 2004
posts: 197
votes: 0

hi all,

how can I force user click the link of 'logout' when they want to logout from the page? Anyway for me to not allow them exit the browser by clicking the 'X' at the right top of the browser?


3:19 am on Sept 20, 2007 (gmt 0)

Preferred Member

10+ Year Member

joined:May 29, 2007
posts: 578
votes: 0

It's their browser (aka user agent) not yours

Probably the only thing you can force them to do via a script is 'Form an opinion that your site ain't worth revisiting - at least not without ensuring scripts are disabled'

3:57 am on Sept 20, 2007 (gmt 0)

Junior Member

5+ Year Member

joined:Sept 16, 2007
votes: 0

Ya. Better way just set session or cookie timeout.