i am trying to disable the the default behaviour back button using javascript but it is not working
window.addEventListener(‘tizenhwkey’, function (e) {
if (e.keyName == "back") {
e.preventdefault() ;
}
}
i am trying to disable the the default behaviour back button using javascript but it is not working
window.addEventListener(‘tizenhwkey’, function (e) {
if (e.keyName == "back") {
e.preventdefault() ;
}
}
Try with
if (e.keyCode === 10009) {
e.preventDefault();
}
Not working ,not able to prevent the default back behaviour