Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


skykissme

219 posts

Master Geek


#8638 17-Jul-2006 15:06
Send private message

Hi!!

I'm now working part-time with a friend while waiting for CCNA to start on the 25th.

I'm stuck on a little onUnload() in javascript, wonder if anyone can help me with this.

Our client wants to have a popup questionaire upon user leaving his site, either close the web browser or type in the url in the address bar. But I have a problem that it popup the questionaire when I browse around the site too.

So the question is, is it possible to get an output destination url in javascript? If so, could you tell me how?

Thank you

Pimmy




We'll never be too old to learn, and we learn at least one new thing every day.

Create new topic
skykissme

219 posts

Master Geek


  #42052 20-Jul-2006 16:18
Send private message

Finally found a good answer for this problem on Google using onunload() and window.open()

But the second question is when user click back and forward and refresh (or F5) on the web browser, the onunload() got call too. What next? I don't know yet.




We'll never be too old to learn, and we learn at least one new thing every day.

Create new topic





News and reviews »

Gen Threat Report Reveals Rise in Crypto, Sextortion and Tech Support Scams
Posted 7-Aug-2025 13:09


Logitech G and McLaren Racing Sign New, Expanded Multi-Year Partnership
Posted 7-Aug-2025 13:00


A Third of New Zealanders Fall for Online Scams Says Trend Micro
Posted 7-Aug-2025 12:43


OPPO Releases Its Most Stylish and Compact Smartwatch Yet, the Watch X2 Mini.
Posted 7-Aug-2025 12:37


Epson Launches New High-End EH-LS9000B Home Theatre Laser Projector
Posted 7-Aug-2025 12:34


Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.