Results 1 to 5 of 5

Thread: What is this JS???? [Resolved]

Threaded View

  1. #1

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    What is this JS???? [Resolved]

    I am fixing the HTML and CSS at a page for a friend of my that he have made in DreamWeaver.

    And DW have added some JS. What does it do...? Is it necessary to have it at all?


    Code:
    <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();
    			}
    
    			MM_reloadPage(true);
    		//-->
    		</script>

    Is it some reload function if the browser changes size or something?
    Last edited by NoteMe; Apr 4th, 2004 at 10:06 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width