Are you using window.onLoad or DOMContentLoaded.  If you are worried about
them pressing the "back" button then use window.onLoad because it waits till
everything is done loading, not till the DOM content is ready to be
manipulated.  It shouldn't hurt anything if they press the "back" button,
unless it's an auto-load Ajax, and if that is the case, you can use some
tricks that JQuery has built into it.


-----Original Message-----
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of Dragon-Fly999
Sent: Thursday, May 07, 2009 7:20 AM
To: jQuery (English)
Subject: [jQuery] Document ready function and the browser forward/back
button


Hi,

I have a few document ready functions on my page.  I don't want the
functions to get executed if the page is loaded because the user
clicks on the browser forward/back button.  Is there a way to prevent
the document ready functions from getting executed if the user clicks
on the forward/back button? Thank you.

Reply via email to