This simple JavaScript line will reload the window if the size of the window is changed.
To copy the script click on the SELECT ALL button, right-click on the selected text, copy it
into a new file in a text editor and save the file. Thats all folks!