More actions
No edit summary |
|||
Line 6: | Line 6: | ||
function closeToURL() | function closeToURL() | ||
{ | { | ||
document.location = "http://www.catglobe.com"; | document.location = "http://www.catglobe.com"; | ||
} | } | ||
quest.close = closeToURL; | quest.close = closeToURL; | ||
</source> | </source> |
Revision as of 08:55, 2 March 2009
Challenge
You want the respondent to be automatically redirected to a URL when he clicks on the Close button
Code
function closeToURL()
{
document.location = "http://www.catglobe.com";
}
quest.close = closeToURL;