JavaScript code to detect the user-agents of iPhone, iPad or iPod.
if (/iPad|iPod|iPhone/.test(navigator.userAgent)){
// do ur stuffs for apple
}else{
// do ur stuffs …
JavaScript code to detect the user-agents of iPhone, iPad or iPod.
if (/iPad|iPod|iPhone/.test(navigator.userAgent)){
// do ur stuffs for apple
}else{
// do ur stuffs …