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)
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)
You can use :
var isSafari = !!navigator.userAgent.match(/Version\/[\d\.]+.*Safari/);
if (isSafari){
//run your page refresh code
}