473,396 Members | 2,121 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

close internet explorer with onbeforeunload

I used to have onbeforeunload (Javascript) on the a BODY Tag so when
the user (x) close Internet explorer it will call the logoff function.
But after I ran microsoft update on Beginging of Augest, 2006 this
function does not work anymore.
<body onbeforeunload="logoffuser();">
Please advice

Aug 15 '06 #1
2 2429
ha*******@gmail.com said the following on 8/15/2006 9:15 AM:
I used to have onbeforeunload (Javascript) on the a BODY Tag so when
the user (x) close Internet explorer it will call the logoff function.
But after I ran microsoft update on Beginging of Augest, 2006 this
function does not work anymore.
<body onbeforeunload="logoffuser();">
Please advice
Fix your server code so that it handles it properly.
What happens if the user loses power? You still won't get the logoffuser
called....

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Aug 15 '06 #2
ha*******@gmail.com schrieb:
I used to have onbeforeunload (Javascript) on the a BODY Tag so when
the user (x) close Internet explorer it will call the logoff function.
But after I ran microsoft update on Beginging of Augest, 2006 this
function does not work anymore.
<body onbeforeunload="logoffuser();">
Please advice

i actually have no up-to-date IEx available right now, but i remember
some older Microsoft-only solution you might try:

<script language="JavaScript" event="onbeforeunload()" for="window">
event.returnValue= "some Message";
</script>

hopefully, it works..

Ulrich Kautz

Aug 16 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Asit | last post by:
<META HTTP-EQUIV="expires" content="0"> <META HTTP-EQUIV="pragma" content="no-cache"> <html> <head> <title>Fidelity NetBenefits</title> </head> <body BGCOLOR="#ffffff"> <script...
4
by: Ronny Sigo | last post by:
Hello all, Below is a testroutine. I am trying to open and cclose iexplore programmatically (the default startpage is suffcient, no need to specify another) The opening works, but the closing does...
3
by: Lord2702 | last post by:
Sat. Oct. 30, 2004 3:25 PM PT I want to detect, if user has close the browser, (after logging to my site), that user has closed the browser. How to achieve it ? I want to know this close action...
7
by: tarun.kataria | last post by:
Hi All, Is there any way to detect that the user is trying to Xout the browser window instead of hitting a button. Because in my application I want to make it sure that they dont do it either...
1
by: nebulus | last post by:
I'm working on a web app that under normal circumstances will be happy with the Session_OnEnd event, but when a user leaves a page by closing the browser by either Alt+F4 or just hitting the "X",...
37
by: Jan Tovgaard | last post by:
Hey everyone:) We have a critical problem, which I can see that other people also has ran into. In Internet Explorer 7 it is no longer possible to do a window.close after opening a window,...
3
by: bharath.0523 | last post by:
hi, I have developed a multithreaded MFC activeX control, which i host on the Internet Explorer. when i click on the close button of the Internet Explorer i.e., when the user decides to end the...
5
by: allan.young | last post by:
Hi, When in gmail I'm composing a new email message and I bit the browser back button, I get a dialog that says "Your message has not been sent. Discard your message?" But if instead of...
9
by: Nagesh | last post by:
Hi All, I have a requirement to handle the window(browser) close event. When a user tries to close the browser window , we have to prompt him whether he wants to close the window or not. If...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.