Javascript: Window.reload brings up Warning Message

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • daonho
    New Member
    • Apr 2008
    • 18

    Javascript: Window.reload brings up Warning Message

    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?
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    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).

    Comment

    Working...