page resizing

by Nate Harel <nharel(at)consultant.com>

 Date:  Tue, 31 Jul 2001 15:24:16 -0400
 To:  hwg-techniques(at)hwg.org
  todo: View Thread, Original
Hi all,

Perhaps I can get a bit of advice on this.

I want to refresh a web page when it gets resized.

I am using Dreamweaver and they have a little JS routine that does it for 
Netscape and it works fine. I wanted to implement the same functionality 
for IE and copied the code and made some minor mods to it. However, the 
page does not automatically refresh upon resizing. Some ideas/suggestions 
please.

Here is the code and the page it is located on ...

<script language="JavaScript">
function reloadPage(init) {  //reloads the window if window resized
   if (init==true) {
     document.pgW=self.innerWidth;
	onresize=reloadPage; }
   else
	if (self.innerWidth!=document.pgW )
		location.reload();
}
reloadPage(true);
</script>


http://www.nettech-hosting.net/SeedPartners/index.html


Thanks

Nate

		---------------------------------------------------
			 Nate Harel
		        NetTech Services
		        66 Carol Road
		  Needham, MA  02492-1108
		    Tel: 1-781-559-8176
		 Toll Free: 1-877-567-8936
		   FAX: 1-877-567-8936
		 Email: nharel(at)consultant.com
		     www.nettech-services.net
		----------------------------------------------------

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA