How to reload a page after the OK click on the Alert Page

后端 未结 10 1515
日久生厌
日久生厌 2021-01-01 18:25

I need to reload the page after the OK button is clicked on the Alert box. I am using the following code for it

alert(\"Successful Message\");
window.locati         


        
10条回答
  •  孤独总比滥情好
    2021-01-01 18:49

    Interesting that Firefox will stop further processing of JavaScript after the relocate function. Chrome and IE will continue to display any other alerts and then reload the page. Try it:

    
    

提交回复
热议问题