0

I know you can force a reload of all elements on a page using JS. Is there a way to do this only when the browser is Safari?

(screen orientation changes seem to mess up a layout that I've created only for Safari)

Refresh page on resize with javascript or jquery

Community
  • 1
  • 1

1 Answers1

0
You can use :

    var  isSafari = !!navigator.userAgent.match(/Version\/[\d\.]+.*Safari/);
         if (isSafari){
      //run your page refresh code           
}
rahil sharma
  • 826
  • 7
  • 16