JavaScript Popup Problem

They have: 5,633 posts

Joined: Jan 1970

Hi,

I have a popup on my website which appears every time someone leaves my homepage. Unfortunately,howver, it appears even if someone visits another page on my site. Please can someone tell me how to change this so that it only appears when people leave the site altogether?

My current code is below.

Thank you.
Joe Beaven

<script LANGUAGE=\'JAVASCRIPT\' TYPE=\'TEXT/JAVASCRIPT\'>

</script>