Forum Moderators: open

Message Too Old, No Replies

Exit pop up problem

         

byepolar

10:59 pm on Oct 24, 2003 (gmt 0)

10+ Year Member



Here is my current script. I need something I can put inside internal hyperlinks in the HTML to prevent the pop up from coming up except on exit.

BETWEEN <HEAD> TAGS
<script language='JavaScript'>
<!-- hide from old browsers

function openindex() {
window.open("http://website.com/exit.htm","","location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no,width=490,height=265");

}

// Stop hiding here -->
</script>

INSIDE <BODY> TAG
onunLoad="openindex()">

robertito62

11:13 pm on Oct 24, 2003 (gmt 0)

10+ Year Member



<a href="http://www.yourdomain.com" onclick="openindex=false">

Try this. You will need to add the false call on all your links, including the ones that link to large images, forms and outside links.

This may not work depending on how the function has been defined, but it is probably close.