Some speech"); I would like to reload the index.html page after cli" /> Some speech"); I would like to reload the index.html page after cli" /> Some speech"); I would like to reload the index.html page after cli"/>

i would like to reload the index.html page after clicking "ok" with alertify

2k Views Asked by At

I have this line of javascript in my code

alertify.alert("<div class='alert'>Some speech</div>");

I would like to reload the index.html page after clicking "ok"

Is it possible without going on alertify.confirm?

1

There are 1 best solutions below

0
shet_tayyy On BEST ANSWER

Well, You can use this code to achieve what you want:

alertify.alert("This is an alert dialog.", function(){
    location.reload();
});

Below is the link to the demo: http://jsfiddle.net/5HygY/67/

I hope this helps.