It might sound silly, but I need this functionality.
Can I somehow cancel location.href = 'url' in javascript once it is executed?
for example on click of button i am changing current page with some resource intensive page, I want to give an option to user so that one can cancel it if next page is going to take long time to load.
Thanks and Regards