Disable back button in GWT

前端 未结 5 576
旧时难觅i
旧时难觅i 2021-01-15 14:28

Is there a way to disable the Back button in a browser (basically clearing the History token stack) in GWT? Once I browse to a certain page in my application I want to make

5条回答
  •  春和景丽
    2021-01-15 15:03

    Put this in your index.html file:

    window.open('html page(For example trial.html)', 'Name of the desired site', width='whatever you want',height='whatever you want', centerscreen=yes, menubar=no,toolbar=no,location=no, personalbar=no, directories=no,status=no, resizable=yes, dependent=no, titlebar=no,dialog=no');

提交回复
热议问题