IT Community - Software Programming, Web Development and Technical Support

Window event

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 ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > HTML, CSS and Javascript Coding Techniques

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-16-2007, 11:51 PM
Kamalakannan Kamalakannan is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 299
Kamalakannan is on a distinguished road
Default Window event

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.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-30-2007, 04:21 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: Window event

Hi Kamal,

I think the following code will help u....

<body onLoad="closing=true" onUnload="if (closing) function">

Cheers...
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -7. The time now is 01:03 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0