Redirect into new tab, Redirection |
Redirect into new tab, Redirection |
americast but from India |
Aug 1 2012, 04:56 AM
Post
#1
|
Newbie Group: Members Posts: 12 Joined: 1-August 12 Member No.: 17,530 |
I want my users to go to another website when they close my website. So, I used the given code but I cannot understand what is wrong in it. Please help. Thanx for any help...
[code] <script type="text/javascript"> window.onunload = unloadPage; function unloadPage() { window.open("exampleurl","_blank") } </script> |
Darin McGrew |
Aug 5 2012, 05:12 PM
Post
#2
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
QUOTE Have you heard of any command: onexit ? Perhaps you're referring to the onclose event handler.It's still a bad idea to use it to pester visitors to your site. |
Lo-Fi Version | Time is now: 25th April 2024 - 08:12 PM |