Maybe (untested): if('Navigator' == navigator.appName) { $(document).ready(function() { $('form').each(function() { this.reset(); }); }); }
Using $(window).load instead of $(document).ready would be truer to your original code, but using document.ready would probably work better. --Erik On Wed, Nov 12, 2008 at 2:36 PM, mastorna <[EMAIL PROTECTED]> wrote: > > I'm patching up someone's old, and I do mean old code, and they've got > this line of code attached to the onload handler of the body tag: > > onLoad="if ('Navigator' == navigator.appName) document.forms[0].reset > ();" > > This is an edge case for netscape (details below). Is there a more > appropriate way one would write such a thing in jQuery? > > > ------------------------------------------------------- > > Navigator Next > Netscape Navigator recognizes a bug when using the Pragma in secure > server situations. The site states that even if the pragma command is > used, as long as the browser is never closed, the BACK button will > enable someone to see the information entered. > > Netscape suggests that people shut down the browser after entering to > the screen so that the BACK button doesn't have a history to scroll > through. > > In addition, Netscape suggests the following JavaScript be used in the > BODY tag of all pages that should not be cached: > >