Return to Snippet

Revision: 37554
at December 12, 2010 00:44 by peterbelsky


Initial Code
<script type="text/javascript"> // <![CDATA[
	if ((navigator.userAgent.indexOf('iPhone') != -1) || (navigator.userAgent.indexOf('iPod') != -1) || (navigator.userAgent.indexOf('iPad') != -1)) {
		document.location = "http://www.scottrockers.com/iphone.html";
	} // ]]>
</script>

Initial URL
http://scottrockers.com/blog/resources/simple-code-tricks/how-to-detect-ipad-and-redirect-to-ipad-version-website

Initial Description


Initial Title
How to Detect iPad and Redirect to iPad Version Website

Initial Tags


Initial Language
JavaScript