Difference between revisions of "Close to URL"

From Catglobe Wiki
Jump to: navigation, search
(Example)
m
Line 1: Line 1:
 
== Challenge ==
 
== Challenge ==
<br>You want the respondent to be automatically redirected to a URL when he clicks on the Close button
+
You want the respondent to be automatically redirected to a URL when he clicks on the Close button
 
== Example ==
 
== Example ==
<br> When user finished the questionnaire , you want them to redirect to webshop
+
When user finished the questionnaire , you want them to redirect to webshop
  
 
== Code ==
 
== Code ==

Revision as of 10:02, 2 March 2009

Challenge

You want the respondent to be automatically redirected to a URL when he clicks on the Close button

Example

When user finished the questionnaire , you want them to redirect to webshop

Code

1 function closeToURL()
2 {
3 	document.location = "http://www.catglobe.com";
4 }
5 quest.close = closeToURL;