I have a dialog box that shows a text and two buttons. How can I make it so that when I click on the accept button it reloads the html file it is in or can I reference an html file so that it loads?
var cuadroDialogo = confirm("Que mente mas privilegiada tienes compañer@\n¿Quieres mas?");
if(cuadroDialogo == true) alert("Me alegro !!");
else alert("Pues es una pena !!");
Source: appendto.com | developer.mozilla.org