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.




210 posts

Master Geek


Topic # 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


210 posts

Master Geek


  Reply # 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



Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

CPTPP text and National Interest Analysis released for public scrutiny
Posted 21-Feb-2018 19:43


Foodstuffs to trial digitised shopping trolleys
Posted 21-Feb-2018 18:27


2018: The year of zero-login, smart cars & the biometrics of things
Posted 21-Feb-2018 18:25


Intel reimagines data centre storage with new 3D NAND SSDs
Posted 16-Feb-2018 15:21


Ground-breaking business programme begins in Hamilton
Posted 16-Feb-2018 10:18


Government to continue search for first Chief Technology Officer
Posted 12-Feb-2018 20:30


Time to take Appleā€™s iPad Pro seriously
Posted 12-Feb-2018 16:54


New Fujifilm X-A5 brings selfie features to mirrorless camera
Posted 9-Feb-2018 09:12


D-Link ANZ expands connected smart home with new HD Wi-Fi cameras
Posted 9-Feb-2018 09:01


Dragon Professional for Mac V6: Near perfect dictation
Posted 9-Feb-2018 08:26


OPPO announces R11s with claims to be the picture perfect smartphone
Posted 2-Feb-2018 13:28


Vocus Communications wins a place on the TaaS panel
Posted 26-Jan-2018 15:16


SwipedOn raises $1 million capital
Posted 26-Jan-2018 15:15


Slingshot offers unlimited gigabit fibre for under a ton
Posted 25-Jan-2018 13:51


Spark doubles down on wireless broadband
Posted 24-Jan-2018 15:44



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.

Alternatively, you can receive a daily email with Geekzone updates.