[thelist] JS / deprecated statement warning

Brian Cummiskey brian at hondaswap.com
Tue Mar 2 10:13:31 CST 2004


Brian W. Reaves wrote:

> 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?
>

looks like a typo??
try:
onresize=MM_reloadPage(); }}
instead of
onresize=MM_reloadPage; }}



More information about the thelist mailing list