Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Close to URL: Difference between revisions

From Catglobe Wiki
No edit summary
No edit summary
Line 1: Line 1:
-Chalenge
== 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
<br>
 
-Code<br>
== Code ==
function closeToURL()<br>
<source lang="javascript" line="1">
function closeToURL()
{
{
document.location = "http://www.catglobe.com";<br>
document.location = "http://www.catglobe.com";<br>
}<br>
}
quest.close = closeToURL;
quest.close = closeToURL;
</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";<br>
}
quest.close = closeToURL;