How could I prevent reloading if something existed within a div
? and could it be prevented by making another div
appear with the confirmation request instead of the alert
of the javascript? I have no idea how I could do this.