Welcome visitor
* Login
* Register
It is currently July 21st, 2019, 6:30 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 4 posts ] 
Author Message
  Open a survey in a popup window when leaving
PostPosted: October 7th, 2009, 7:49 am 

Posts: 25
Hello friends,

today I would like to load a survey on a popup window (something like the alert messages) when the user leaves my site. What is the function I should use?

All help is appreciated.


Top
 Profile  
 
  Re: Open a survey in a popup window when leaving
PostPosted: October 7th, 2009, 8:17 am 
User avatar

Posts: 63
function for what? to load your form on a popup window just try something like this:
<a href="#" onclick="window.open('http://form.url','newindow');">go to form</a>


Top
 Profile  
 
  Re: Open a survey in a popup window when leaving
PostPosted: October 8th, 2009, 10:55 pm 

Posts: 25
Thank you, that solved half the problem. The other thing is that i dont want to force the user to click on a link 'cause probably nobody would do it, isnt there a way to trigger the popup when user navigates away from my site?


Top
 Profile  
 
  Re: Open a survey in a popup window when leaving
PostPosted: October 9th, 2009, 5:26 am 
User avatar

Posts: 37
<body onunload="window.open('http://form.url','newindow');">
;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron