![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Apr 2008
Posts: 1
Rep Power: 0
![]() |
Window close event
Hi Guys,
I am using the following javascript code in my dbconnect.asp file to catch the window close event to update the database in logout.asp. window.onbeforeunload =
function(){
if((window.event.clientX<0) || (window.event.clientY<0)){
changeStatus();
}
}
function changeStatus() {
window.location = "logout.asp"
}Can anybody help me with this? Thanks in advance sudha Last edited by Ancient Dragon; Apr 10th, 2008 at 8:28 PM. Reason: add code tags |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Window resize event? | titaniumdecoy | Java | 1 | May 1st, 2006 1:09 AM |
| Can Perl do this window popup? | Ficus | Perl | 23 | Mar 27th, 2006 2:38 PM |
| Download Blocker Finished - Random Text in Window Title? | bigguy | Visual Basic | 1 | Jan 13th, 2006 1:05 PM |
| Arranging Views of Project Explorer, Property window and Form Layout | java_roshan | Visual Basic | 6 | Sep 30th, 2005 2:55 PM |
| New Window | Chris Weimer | HTML / XHTML / CSS | 3 | Sep 20th, 2005 9:18 AM |