closing window and alert problem...

P

point

Helo there....after years of PHP I'm a bit still new to JS...

The problem is....

A client clicks on a button and popup window opens...in there he can add or
delete stuff....after that the same popup window shows "DONE" or
"ERROR"+back button.....

The problem is that I need when he clicks the close window(X) to display
ALERT box...I tried on <body unload> but as explained up there unload
happens a few times in that window and i only need it one...only when (X) is
pressed....

Hope i made myself clear...

any suggestions??

respect...

point
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,190
Latest member
ClayE7480

Latest Threads

Top