Difference between revisions of "Close to URL"
Line 1: | Line 1: | ||
− | + | == Challenge == | |
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 | ||
− | + | ||
− | + | == Code == | |
− | function closeToURL() | + | <source lang="javascript" line="1"> |
+ | function closeToURL() | ||
{ | { | ||
document.location = "http://www.catglobe.com";<br> | document.location = "http://www.catglobe.com";<br> | ||
− | } | + | } |
quest.close = closeToURL; | quest.close = closeToURL; | ||
+ | </source> |
Revision as of 09:55, 2 March 2009
Challenge
You want the respondent to be automatically redirected to a URL when he clicks on the Close button
Code
1 function closeToURL()
2 {
3 document.location = "http://www.catglobe.com";<br>
4 }
5 quest.close = closeToURL;