<?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>Javascript &#8211; Extreme Web Designs</title>
	<atom:link href="https://theextremewebdesigns.com/blog/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>https://theextremewebdesigns.com/blog</link>
	<description>Web Design and Web Development</description>
	<lastBuildDate>Sat, 04 Feb 2012 02:48:39 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.5</generator>
<site xmlns="com-wordpress:feed-additions:1">156673191</site>	<item>
		<title>Javascript: Detect iPhone, iPod, iPad</title>
		<link>https://theextremewebdesigns.com/blog/javascript-detect-iphone-ipod-ipad/</link>
					<comments>https://theextremewebdesigns.com/blog/javascript-detect-iphone-ipod-ipad/#comments</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sat, 04 Feb 2012 02:48:39 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[javascript-snippets]]></category>
		<category><![CDATA[javascript-tips]]></category>
		<guid isPermaLink="false">https://theextremewebdesigns.com/blog/?p=161</guid>

					<description><![CDATA[Have ever ever thought of display custom information to the user or making changes in the browser depending upon whether the user is using iPhone, iPod or iPad? Here is a snippet in Javascript: Detect iPhone, iPod, iPad using this handy snippet! How to Detect iPhone, iPod, iPad using JavaScript &#8211; Examples Insert the following snippet [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Have ever ever thought of display custom information to the user or making changes in the browser depending upon whether the user is using iPhone, iPod or iPad? Here is a snippet in Javascript: Detect iPhone, iPod, iPad using this handy snippet!<span id="more-161"></span></p>
<h2>How to Detect iPhone, iPod, iPad using JavaScript &#8211; Examples</h2>
<p>Insert the following snippet just above your &lt;/head&gt; tag:</p>
<pre class="lang:js decode:true">&lt;script type="text/javascript"&gt;
//Make your JS compatible by using the following tags
//&lt;![CDATA[

// Apple detection object
var Apple = {};
Apple.UA = navigator.userAgent;
Apple.Device = false;
Apple.Types = ["iPhone", "iPod", "iPad"];
for (var d = 0; d &lt; Apple.Types.length; d++) {
var t = Apple.Types[d];
Apple[t] = !!Apple.UA.match(new RegExp(t, "i"));
Apple.Device = Apple.Device || Apple[t];
}
// is this an Apple device?
/*alert(
"Apple device? " + Apple.Device +
"\niPhone? " + Apple.iPhone +
"\niPod? " + Apple.iPod +
"\niPad? " + Apple.iPad
);*/
if ( true == Apple.iPhone )
{
 //do this
}
else  if ( true == Apple.iPod )
{
//do this
}
else  if ( true == Apple.iPad )
{
//do this
}

//]]&gt;
&lt;/script&gt;</pre>
<h5>That&#8217;s it!</h5>
<p>Did you like this post? Do you know of any other ways to <strong>detect iPhone, iPod, iPad using JavaScript</strong>? Feel free to suggest by commenting below. We would love to hear from you.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theextremewebdesigns.com/blog/javascript-detect-iphone-ipod-ipad/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">161</post-id>	</item>
	</channel>
</rss>
