What if Javascript is turned off? BTW, I use Alt+Left all the time on
websites with disabled navigation buttons.

On 2/22/06, Eickvonder Bjoern <[EMAIL PROTECTED]> wrote:
> Just add
>
> document.onkeydown         = function(e) {
>         if (document.all) {
>                 if (event.srcElement.type=="text" || 
> event.srcElement.type=="textarea") return true;
>                 else return false;
>         }
>         else {
>                 if (e.target.type=="text" || e.target.type=="textarea") 
> return true;
>                 else return false;
>         }
> }
> document.onkeypress        = function(e) {
>         if (document.all) {
>                 if (event.srcElement.type=="text" || 
> event.srcElement.type=="textarea") return true;
>                 else return false;
>         }
>         else {
>                 if (e.target.type=="text" || e.target.type=="textarea") 
> return true;
>                 else return false;
>         }
> }
>
> to your page and all keys pressing has no effect, except for text and 
> textarea fields. So the only way
> still to get back ist pressing ALT-Leftarrow within a text or text area. You 
> might catch this as well
> but exactly catching a specific key is more complicated especially as firefox 
> and ie behaviour differs in
> that case.
>
> Bjoern
>
> > -----Ursprüngliche Nachricht-----
> > Von: Josh McDonald [mailto:[EMAIL PROTECTED]
> > Gesendet: Mittwoch, 22. Februar 2006 06:42
> > An: user@struts.apache.org
> > Betreff: Re: Disabling Back Button in IE
> >
> > Can't (and shouldn't) be done. The closest you're likely to
> > get it open your app in a popup window with no menu, though
> > the user can still hit backspace. A better idea is to fix the
> > (assumed) re-post issues in your application.
> >
> > -Josh
> >
> > --
> >
> > "His comrades fought beside him, Van Owen and the rest...
> >        But of all the thompson gunners- Roland was the best."
> >
> > Josh McDonald
> > Analyst Programmer
> > Information Technology
> > Ph: 61 7 3006 6460
> > Email: [EMAIL PROTECTED]
> >
> >
> > >>> [EMAIL PROTECTED] 22/02/2006 3:19:22 pm >>>
> >
> >
> >
> > Hi
> > Anyone can tell how to disable the "Back" button in IE
> > through our Code.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to