variousscripts/restartprocesspage/index.html

19 lines
586 B
HTML
Raw Permalink Normal View History

2019-08-05 13:07:57 +00:00
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<h1 id="res"></h1>
<script type="text/javascript">
var answer = prompt('Enter "yes" if you want to restart process');
if (answer == "yes") {
var tch = new XMLHttpRequest();
tch.open('GET', 'touch.php');
tch.send(null);
document.getElementById("res").innerHTML = "Process was restarted";
} else document.getElementById("res").innerHTML = "Process was not restarted";
</script>
</body>
</html>