This stopLeave func. is assigned to 'onbeforeunload' event. What do i do to stop page from refreshing or closing explorer when user press cancel??
Javascript
function stopLeave(){
var a = confirm('are you sure you want to leave? you have unsaved work');
if (a){
what do i write here? } else
{ what do i write here?
}
}