View Full Version : What is this?

07-04-2006, 02:47 PM
Does anyone know what this might be? Dreamweaver automaticaly adds this to new documents:

<script language="JavaScript" type="text/JavaScript">
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();

07-04-2006, 03:08 PM
Refreshes the page if using Navigator 4 and the window has been resized. I think it's a workaround for a bug, although an irritating one, especially for those with slow connections. I doubt anyone will be using Navigator 4 any more anyway, though, so I wouldn't worry about it too much.