[removed].reload not working for Firefox and Chrome

前端 未结 8 516
灰色年华
灰色年华 2020-12-08 15:44

I want to change the user status on click of a Button, so all I am doing is, detecting the current status and changing, if needed.

But in this case the changes the s

8条回答
  •  北海茫月
    2020-12-08 16:08

    Mega solution I just have found.

    You have to simulate to post an empty form.

    HTML

    JS

    document.getElementById("myForm").submit();
    

提交回复
热议问题