This is a discussion on Window event within the HTML, CSS and Javascript Coding Techniques forums, part of the Web Development category; i need window event to call JavaScript function when i close the window. Because i need to update logout time ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| i need window event to call JavaScript function when i close the window. Because i need to update logout time when close the window without logout. Note: Event to support both IE and Firefox. --kamal. |
| Sponsored Links |
| |||
| Hi Kamal, I think the following code will help u.... <body onLoad="closing=true" onUnload="if (closing) function"> Cheers... |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need to close parent window after closing child window. | S.Vinothkumar | ASP and ASP.NET Programming | 6 | 11-05-2007 06:08 AM |
| Is it possible to close the parent window (main web browser window) from a child win | gp_logesh | HTML, CSS and Javascript Coding Techniques | 1 | 10-29-2007 04:53 AM |
| Mouse event | varghese | HTML, CSS and Javascript Coding Techniques | 1 | 09-18-2007 08:31 AM |
| How to pass the value from the child window to parent window in javascript? | kingmaker | HTML, CSS and Javascript Coding Techniques | 1 | 09-04-2007 03:18 AM |
| event.clientX and event.clientY is working in IE but not work in firefox? | senraj | HTML, CSS and Javascript Coding Techniques | 2 | 08-08-2007 05:27 AM |