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

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

    Try this code..

    IN PHP Code

    echo "";
    

    IN Javascript

    function refresh()
    {
        alert("click ok to refresh  page");
        location.reload();
    }
    

提交回复
热议问题