Hide Div in IOS

1

I have a redirect button for whatsapp on my site that does not work on ios, would I have some way to hide it just for that OS? In case it is inside a href in html, it would suffice to hide it when the user is using iOS.

    
asked by anonymous 15.09.2017 / 17:19

1 answer

1

You can try this approach,

var ehIOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;

if(ehIOS){
   //codigo para ocultar
}
    
15.09.2017 / 22:04