[thelist] JS / deprecated statement warning

Brian W. Reaves brian at brianreaves.com
Tue Mar 2 09:43:32 CST 2004


I am getting a warning on the following script:

function MM_reloadPage(init) {
    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);

This script is used to fix a resize bug in NS 4X browsers. The warning says:

Warning: deprecated with statement usage, Line 7: onresize=MM_reloadPage; }}

Does anyone have a solution?

-- 
======================
Brian W. Reaves
Web Consultant
http://BrianReaves.com
(334) 728-0102


More information about the thelist mailing list