jquery - how to edit link buttons in Bootbox / Bootstrap confirm window -


i have simple bootbox / javascript confirm window at:

https://www.guard-gate.com/test2/index.html

how edit links sucess point google.com?

i advised following:

window.location.href = "http://www.google.com"; 

but have add code follows?

  buttons: {     success: {   label: "success!",   classname: "btn-success",   callback: function(window.location.href = "http://www.google.com";) {     example.show("great success"); 

your code be

buttons: {     success: {       label: "success!",       classname: "btn-success",       callback: function() {          window.location.href = "http://www.google.com";       }    }; 

Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -