Disable Back button android/ios

Possible to disabled back button android/ios using custom js ? Thank you.