Dialog boxes and back button

Dialog boxes and back button

I want to use the JQuery boxes instead of Javascript alerts.  The problem is after the dialog box appears and the user navigates to another page, the dialog box appears again after the user returns to the page (with the JQuery dialog box) using the back button. 

Is there a way to make the dialog box appear only once like a Javascript alert?