Skip to content

Instantly share code, notes, and snippets.

View davidoster's full-sized avatar

David Oster aka George Pasparakis davidoster

View GitHub Profile
@davidoster
davidoster / index.html
Last active January 23, 2021 18:57
Playing around
<!DOCTYPE HTML>
<HTML>
<HEAD></HEAD>
<BODY>
<!-- doesn't work!!! <a href="" onclick='onDelete("http://localhost:3000/books/delete/1")'> Delete</a> -->
<button onclick='onDelete("http://localhost:3000/books/delete/1")'> Delete</button>
<SCRIPT>
function onDelete(url) {
var dialog = confirm("Are you sure you want to delete this book?");
if(dialog) {