How to disable browser back button in Oracle ADF
I know. I should not do this. But...

I need to disable browser back button in an ADF web application. I've tried with this code in the initialize javascript function on a jspx (we can call main.jspx):

    window.history.forward(1);

The back button is not disabled but if I click it after visiting main page (e.g. from the page after main to the main page) it returns to the second page. I would to diasble the back button at all. Is it possible? If you know something specifically for ADF application (also without using javascript) the answer is welcome.

Thanks.
How to disable browser back button in Oracle ADF
===

I know. I should not do this. But...

I need to disable browser back button in an ADF web application. I've tried with this code in the initialize javascript function on a jspx (we can call main.jspx):

    window.history.forward(1);

The back button is not disabled but if I click it after visiting main page (e.g. from the page after main to the main page) it returns to the second page. I would to diasble the back button at all. Is it possible? If you know something specifically for ADF application (also without using javascript) the answer is welcome.

Thanks.