By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,818 Members | 2,121 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,818 IT Pros & Developers. It's quick & easy.

Javascript: Window.reload brings up Warning Message

P: 18
Hi everyone,

I have a javascript function that basically has window.reload() to refresh the page. When this function execute, sometime it shows the warning message like "This is will repost the data....If this is a transaction, click cancel". The warning message appears to be show up randomly even on the same page with same data. Anyone know why and when does it show up?
Aug 1 '08 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 15k+
P: 16,027
This message will appear after a page has been submitted with a post request. To avoid it you could do a post/redirect/get PRG (see link).
Aug 1 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.