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
Mega solution I just have found.
You have to simulate to post an empty form.
HTML
JS
document.getElementById("myForm").submit();