<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>frank-dejong.com &#187; javascript redirect code</title>
	<atom:link href="http://www.frank-dejong.com/tag/javascript-redirect-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.frank-dejong.com</link>
	<description>projects &#124; webdesign &#124; technology</description>
	<lastBuildDate>Thu, 19 Aug 2010 07:21:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>A nice little Javascript redirect</title>
		<link>http://www.frank-dejong.com/a-nice-little-javascript-redirect/</link>
		<comments>http://www.frank-dejong.com/a-nice-little-javascript-redirect/#comments</comments>
		<pubDate>Sun, 12 Jul 2009 08:50:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Websites]]></category>
		<category><![CDATA[404 page]]></category>
		<category><![CDATA[custom 404 page]]></category>
		<category><![CDATA[javascript redirect code]]></category>

		<guid isPermaLink="false">http://www.frank-dejong.com/?p=84</guid>
		<description><![CDATA[I customized a 404 page today.  Just with some text to let the user know the page wasn&#8217;t there with a few links to existing content on the domain.  Then, using the script below it redirects the visitor to my homepage in 2 seconds.  A nice way to capture your 404 traffic [...]]]></description>
			<content:encoded><![CDATA[<p>I customized a 404 page today.  Just with some text to let the user know the page wasn&#8217;t there with a few links to existing content on the domain.  Then, using the script below it redirects the visitor to my homepage in 2 seconds.  A nice way to capture your 404 traffic I thought.</p>
<blockquote><p><span><span style="font-family: Arial,Helvetica; font-size: x-small;">This example is setup to redirect to another page in 2 seconds. When a page 		      contains this JavaScript, it will be redirected to another page that you 		      specify in the &#8220;<strong>window.location=</strong>&#8220;. You can change the number of refresh 		      seconds by changing the &#8220;<strong>move()&#8217;,2000</strong> to the number of seconds you&#8217;d 		      like.</span></span></p>
<p>Example:</p>
<p>1000 = 1 second<br />
3000 = 3 seconds<br />
<span style="font-family: Arial,Helvetica; font-size: x-small;">Place this code between the 		      &lt;head&gt; and &lt;/head&gt; tags</span></p>
<table border="0" cellpadding="4" width="90%">
<tbody>
<tr>
<td bgcolor="#eae8e8"><span style="font-family: Arial,Helvetica; font-size: x-small;">&lt;script 			    language=&#8221;JavaScript&#8221;&gt;<br />
var time = null<br />
function move() {<br />
window.location = &#8216;http://www.yourdomain.com&#8217;<br />
}<br />
//&#8211;&gt;<br />
&lt;/script&gt;</span></td>
</tr>
</tbody>
</table>
<p><span style="font-family: Arial,Helvetica; font-size: x-small;">Place this code in your &lt;body&gt; 		      tag</span></p>
<table border="0" cellpadding="4" width="90%">
<tbody></tbody>
</table>
<p><span style="font-family: Arial,Helvetica; font-size: x-small;">&lt;<strong>body</strong> onload=&#8221;timer=setTimeout(&#8217;move()&#8217;,2000)&#8221;&gt;</span></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.frank-dejong.com/a-nice-little-javascript-redirect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
