Find jobs - Kamala Harris - Submit article - Self Improvement Articles Directory - Debt Consolidation

PDA

View Full Version : Popup code needed, anyone?


Voimis
Oct 8th 2007, 1:41 am
Hi there!

I need a popup code which appears when exiting the site. It shouldn´t appear when uses link to different page, just when user is exiting the whole site to another site or shutting down the browser.

How to do that?

Also if somebody knows how to do a popup which changes the place where it appears...would be very great!

Thanks a lot guys!

Voimis

it career
Oct 8th 2007, 4:02 am
Use

In <head>
<script>
write exit code
</script>
</head>
<body onUnload="exit()" >

Voimis
Oct 8th 2007, 5:56 am
Use

<body onUnload="exit() >

...and what then? Where I should put text which should appear on popup?

I´m a newbie with JavaScript :D

kfir
Oct 15th 2007, 11:23 pm
Use

In <head>
<script>
write exit code
</script>
</head>
<body onUnload="exit()" >


And would this help him? he wanted the popup to appear when they leave his website and this will make the popup each and every time they'll switch a page...

temp2
Oct 16th 2007, 5:34 am
Popup onUnload - http://javascriptbank.com/javascript/run-script-popup-onunload.html
This script will open a new window when visitors close window contain this code.

Voimis
Oct 18th 2007, 6:01 am
Thanks to you temp2!


I have also another question:

Is there any way to change the place where popup appears?
I mean is it possible that multiple popups appears in different places one after one, not all in the same place in center of the window.

Thanks!