| | |
Load new page on site exit
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Aug 2005
Posts: 20
Reputation:
Solved Threads: 0
Try create function in javascript like below:
and insert in the body tag:
not sure. try it.
HTML and CSS Syntax (Toggle Plain Text)
<script language=javascript> function thankYou(){ var win=window.open('your popup url', 'thank you', 'window_options'); } </script>
and insert in the body tag:
HTML and CSS Syntax (Toggle Plain Text)
<body onunload="thankYou()">
not sure. try it.
•
•
Join Date: Aug 2005
Posts: 20
Reputation:
Solved Threads: 0
Sorry i mistyped 'onUnload'
(working example @ http://www.geocities.com/cppforlife/.../thankyou.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
Good luck.
(working example @ http://www.geocities.com/cppforlife/.../thankyou.html)
HTML and CSS Syntax (Toggle Plain Text)
<!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
HTML and CSS Syntax (Toggle Plain Text)
var win=window.open("panel.html", "win", "left=20,top=20,width=500,height=500");
Good luck.
![]() |
Similar Threads
- How do i load a image on the same page ? (Site Layout and Usability)
- should i optimize the same keywords for each page on your site? (Search Engine Optimization)
Other Threads in the HTML and CSS Forum
- Previous Thread: Dead End Pages
- Next Thread: The new "haslayout" IE CSS feature - Explained
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7





