No, Anthony, he is refreshing the page on the *onload* event. Yes, that's a loop.. Instead of using *reload()* couldnt you try to use *window.location.href=window.location.href+ '?reloaded=yes'* Then you check the queryString for the *reloaded* var before *reload()'ing.* -- Flavio Gomes flavio at economisa.com.br Anthony Ettinger wrote: >>my code is... >> >><script language=javascript> >>function pagereload() >>{ >> window.location.reload(); >>} >></script> >> >> > > > >>that function called in body onLoad event >> >><body onLoad="pagereload()"> >> >>this function is working but it will do in loop. >> >> > >window.location.pagereload(); <-- is this what you >mean? > > >If so, you're calling it recursively. > >All you need is to put this at the top of your js >file: > >window.onload = init(); > >function init() >{ > //initialize form >} > > >Anthony Ettinger >ph: (408) 656-2473 >blog: http://www.chovy.com >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.evolt.org/pipermail/javascript/attachments/20051017/e6819831/attachment.htm>