标签: javascript angularjs
var answer = confirm('Are you sure you want to Navigate away from this page? '); if(!answer) { event.preventDefault(); }
Github