Skip to content

Instantly share code, notes, and snippets.

@krusynth
Created July 30, 2015 20:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krusynth/b7e08ff2955bab2ebeae to your computer and use it in GitHub Desktop.
Save krusynth/b7e08ff2955bab2ebeae to your computer and use it in GitHub Desktop.
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment