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

后端 未结 10 1500
日久生厌
日久生厌 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:34

    I may be wrong here but I had the same problem, after spending more time than I'm proud of I realised I had set chrome to block all pop ups and hence kept reloading without showing me the alert box. So close your window and open the page again.

    If that doesn't work then you problem might be something deeper because all the solutions already given should work.

提交回复
热议问题