Has anyone been able to figure out how to redirect after the Thank You page for Chrome Users.. I have a couple of methods that work fine for the other browsers, but for Chrome it will not.
Thanks,🙂
Thanks,🙂
Hi evetsnalon,
What have you tried that isn't working?
Bob
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="TestJoomlaAddress.html" />
<title>Test Timed Redirection</title>
<noscript>
<meta http-equiv="refresh" content="5; URL=TestJoomlaAddress.html">
</noscript>
<script language="JavaScript">
<!--
var sTargetURL = "TestJoomlaAddress.html";
function doRedirect()
{
setTimeout( "timedRedirect()", 5*1000 );
}
// There are three definitions of 'timedRedirect', this
// one adds to the visitors page history.
function timedRedirect()
{
window.location.href = sTargetURL;
}
//-->
</script>
<script language="JavaScript1.1">
<!--
function timedRedirect()
{
window.location.replace( sTargetURL );
}
//-->
</script>
<script language="JavaScript">
<!--
// This should redirect Chrome Browsers
function timedRedirect()
{
window.setTimeout("location=( sTargetURL );",5000);
}
//-->
</script>
</head>
<body onload="doRedirect()">
<p><em><strong><span style="color: #3366ff; font-size: large;">Thank You For Your Entry!</span></strong></em><br /><br /><em><strong><span style="color: #3366ff; font-size: large;">Good Luck!</span></strong></em></p>
<p>Loading <a href="TestJoomlaAddress.html">Candle GiveAway</a></p>
<p>In approx. 5 seconds the redirection target page should load.<br>
If it doesn't please select the link above, or navigate by menu above or whatever you like. Thanks Again.</p>
</body>
</html>
<?php
$doc =& JFactory::getDocument();
$doc->setMetaData('refresh', '10;URL='.$form->data['redirect_url'].'', 'true');
?>
where the URL was previously set in a ReDirect URL action or in the form data.