|
-
Apr 4th, 2004, 09:54 AM
#1
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.
-
Apr 4th, 2004, 09:59 AM
#2
Frenzied Member
Yes, it reloads the page if the user has adjusted the browser size.
Being educated does not make you intelligent.
Need a weekend getaway??? Come Visit
-
Apr 4th, 2004, 10:06 AM
#3
Hmmmm...weird...I thought it did that automaticaly...
-
Apr 7th, 2004, 07:15 AM
#4
Retired VBF Adm1nistrator
I think its to fix a Netscape bug?
-
Apr 7th, 2004, 07:29 AM
#5
Frenzied Member
Originally posted by plenderj
I think its to fix a Netscape bug?
most likely, as it only runs on netscape v4
Have I helped you? Please Rate my posts. 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|