Fernandes Celinio SGCF wrote:
Hi,
I want to forbid the user to go back.
Javascript does not work in actions:
Well, obviously; Javascript runs on the client, actions run on the server.
<script language="JavaScript">
window.history.forward(1);
</script>
Is there a way to disable the back button in Struts ?
Thanks
That code should work as you expect as long as it is included on the
page you want to disable the back button for. However, that's generally
a bad thing to do from a usability perspective; users expect their back
buttons to work unimpeded.
I would suggest re-examining the requirement that led you to disabling
the back button, and addressing it in a way that allows the back button
to function normally.
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]