Block back buton in web app for mobiles

Hello community, 

I have a requirement that when you reach the last page, it cannot return to the previous pages with the physical back button of the cell phone.

I think you can with javacript, but I don't know the correct function.

can you help me, thanks!

atte luis

Hello Luis.

Take a look on this component.

It is not very popular, because most people take the JS approach or adapt the app logic, but it should work.