This commit is contained in:
Boof 2023-02-27 13:46:22 +01:00 committed by GitHub
parent 8111e3b030
commit c1e62a0a2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,8 +9,14 @@
<script>
function YEET(){
const url = document.getElementById("input").value
const output = document.getElementById("out")
fetch(url, { method: 'DELETE' })
.then(() => document.getElementById("out") = 'Delete successful');
.then((response) => {
if(response.ok) {
output.innerHTML = 'Delete successful';
}
})
}
</script>
</body>