Difference between revisions of "Close to URL"
(→Example) |
|||
Line 2: | Line 2: | ||
<br>You want the respondent to be automatically redirected to a URL when he clicks on the Close button | <br>You want the respondent to be automatically redirected to a URL when he clicks on the Close button | ||
== Example == | == Example == | ||
− | <br> When | + | <br> When user finished the questionnaire , you want them to redirect to webshop |
+ | |||
== Code == | == Code == | ||
<source lang="javascript" line="1"> | <source lang="javascript" line="1"> |
Revision as of 10:01, 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;