[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Executing Javascript Function on Browser Close

Posted on 2004-09-09
6
Medium Priority
?
263 Views
Last Modified: 2010-04-17
I want to invoke/execute a Javascript Function to perform some DB clean-up activity when a user closes his IE browser by clicking on the X (i.e browser close) in the upper right-hand corner of the browser.

Can you give me some idea how I can accomplish this?

Thanks

zeke20
0
Comment
Question by:zeke20
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
6 Comments
 
LVL 5

Accepted Solution

by:
tzxie2000 earned 200 total points
ID: 12022867
int buttone click
        MessageBox.Show(Today.Month.ToString + " " + Today.Year.ToString)
0
 
LVL 5

Expert Comment

by:tzxie2000
ID: 12022899
this may more better
 MessageBox.Show(Today.ToString("MMMM yyyy"))
0
 
LVL 5

Expert Comment

by:tzxie2000
ID: 12022977
sorry for worry enter the comment
it's confused you
I am very sorry

some suggestion for your question
using unload event?!
0
 
LVL 5

Expert Comment

by:tzxie2000
ID: 12023016
using html under below

<body ... onload="alert('welcome')" onunload="alert('byebye')">

replace alert function to your java script function

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Progress

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question