Ok. I did a search to figure out how to stop a window from closing and I found the onbeforeunload with the dialog box. This works to stop the window from closing, but if a link is clicked it still goes through the unload and still prompts, even though the window isn't closing. Is there a way to use the onbeforeunload to stop the window from closing, but still allow for links to be used? Thanks for the help.