Super Web Mart - Discount Coupons & Deals - Discount Promos, Coupon Codes, Discount deals and web site reviews
 

Author Topic: Detect Googlebot, Android, iPhone/iPad using javascript  (Read 1515 times)

0 Members and 1 Guest are viewing this topic.

Offline Reema Khan

  • Full Member
  • ***
  • Posts: 184
    • View Profile
Detect Googlebot, Android, iPhone/iPad using javascript
« on: April 18, 2012, 07:33:08 AM »
Here's a little script to help newbies with detecting what type of visitor they are having.

Detect Googlebot:
Code: [Select]
var isGoogle = navigator.userAgent.toLowerCase().indexOf('Googlebot') > 0;
Detect iPhone and iPad:
Code: [Select]
var isApple = navigator.userAgent.toLowerCase().indexOf('iphone') > 0 ||  navigator.userAgent.toLowerCase().indexOf('ipad') > 0;
Detect Android:
Code: [Select]
var isAndroid = navigator.userAgent.toLowerCase().indexOf('android') > 0;

Webmaster Forum

Detect Googlebot, Android, iPhone/iPad using javascript
« on: April 18, 2012, 07:33:08 AM »

Offline GeorgeClooney

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • lost iphone contacts
Re: Detect Googlebot, Android, iPhone/iPad using javascript
« Reply #1 on: October 05, 2012, 09:14:54 AM »
Nice! I'll try it!
What if anyone newbielink:http://www.any-data-recovery.com/topics/mobile-devices/lost-contacts-on-iphone.html [nonactive]? Adhere to this kind of guide to have all your newbielink:http://www.any-data-recovery.com/topics/mobile-devices/lost-contacts-on-iphone.html [nonactive].

Offline JacketMan

  • Jr. Member
  • **
  • Posts: 12
    • View Profile
Re: Detect Googlebot, Android, iPhone/iPad using javascript
« Reply #2 on: October 28, 2012, 08:53:17 PM »
Apple Inc.'s latest handset, the iPhone 5, is expected to be on sale in China by December, according to a statement from its Chief Executive Officer Tim Cook, in the company's quarterly financial report.

Apple has been placing greater emphasis on the Chinese market since Cook took over, illustrated by its store expansion in the country and a shortened new product delivery time gap between the United States and China.
How can I recover iPhone files I lost? By using an iPhone data recovery software, you can make it at ease.

Offline Arianna

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Mobile iPhone Development India
Re: Detect Googlebot, Android, iPhone/iPad using javascript
« Reply #3 on: October 31, 2012, 05:39:51 AM »
Thanks a lot for share it. I will try it. Thanks again.
newbielink:http://www.mobileiphonedevelopmentindia.com/iphone-application-development/iphone-application-development.html [nonactive]
newbielink:http://mobileiphonedevelopmentindia.com/android-application-development/android-application-development.html [nonactive]
newbielink:http://www.mobileiphonedevelopmentindia.com/ [nonactive]

Offline klausmmia

  • Jr. Member
  • **
  • Posts: 10
    • View Profile
    • iphone application development
Re: Detect Googlebot, Android, iPhone/iPad using javascript
« Reply #4 on: February 18, 2013, 09:42:29 PM »
I'll get back to you as soon as I'll try it.

Webmaster Forum

Re: Detect Googlebot, Android, iPhone/iPad using javascript
« Reply #4 on: February 18, 2013, 09:42:29 PM »