3
Contributors
5
Replies
7
Views
12 Years
Discussion Span
Last Post by martinkorner
0

Pop-ups are generally hated by everyone, even if it is just to say thank you.

Just a warning.

0

Try create function in javascript like below:

<script language=javascript>
 function thankYou(){
  var win=window.open('your popup url', 'thank you', 'window_options');
 }
</script>

and insert in the body tag:

<body onunload="thankYou()">

not sure. try it.

0

Sorry i mistyped 'onUnload'
(working example @ http://www.geocities.com/cppforlife/projects/html/thankyou.html)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
 <title>Thank You!!!</title>
 <script language=javascript>
  function thankYou(){
   var win=window.open("panel.html", "win");
  }
 </script>
</head>

<body onUnload="thankYou()">
<a href="http://www.yahoo.com">Y!</a>


</body>
</html>

code above checked in IE and worked properly..
Also replace 'panel.html' with url of you thenk you page.

If you want to change size of the window and other attributes add third argument to open function like below

var win=window.open("panel.html", "win", "left=20,top=20,width=500,height=500");

Good luck.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.