Created
July 30, 2015 20:26
-
-
Save krusynth/b7e08ff2955bab2ebeae to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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