Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > How can I catch the "back" from the browser's menu ? (IE+NS)

Reply
Thread Tools

How can I catch the "back" from the browser's menu ? (IE+NS)

 
 
John
Guest
Posts: n/a
 
      03-01-2005
Hi,
I have to catch the "back" browser's functionality from the menu. I
already can catch the key-stroke combination for IE + NS/Firefox and
inactivate the mouse right-button, but I still have to catch the event
of the browser's "back" functionality from the menu bar.

Does anybody have an idea how can I catch this with JavaScript?

Thank you very much for your answerz
John
 
Reply With Quote
 
 
 
 
Grant Wagner
Guest
Posts: n/a
 
      03-01-2005
"John" <> wrote in message
news: m...
> Hi,
> I have to catch the "back" browser's functionality from the menu. I
> already can catch the key-stroke combination for IE + NS/Firefox and
> inactivate the mouse right-button,


You just think you can.

> but I still have to catch the event
> of the browser's "back" functionality from the menu bar.


You can't.

> Does anybody have an idea how can I catch this with JavaScript?


The closest you can come is <body onunload="..."> and you have no way of
determining what user action caused that event.

> Thank you very much for your answerz


You're welcome.

--
Grant Wagner <>
comp.lang.javascript FAQ - http://jibbering.com/faq


 
Reply With Quote
 
 
 
 
David Dorward
Guest
Posts: n/a
 
      03-01-2005
John wrote:

> I have to catch the "back" browser's functionality from the menu.


You can't. You can only tell that the user has left the page, not where they
have gone.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
 
Reply With Quote
 
Randy Webb
Guest
Posts: n/a
 
      03-01-2005
John wrote:
> Hi,
> I have to catch the "back" browser's functionality from the menu.


Then you need to rethink your requirements as you can't do what you are
wanting to do.


> I already can catch the key-stroke combination for IE + NS/Firefox and
> inactivate the mouse right-button


Nah, you just think you can. And thats not to mention Opera where you
can not even disable the context menu. What exactly are you trying to hide?


> but I still have to catch the event of the browser's "back" functionality from the menu bar.


You can't.

> Does anybody have an idea how can I catch this with JavaScript?


Start by reading this groups FAQ, via signature below, and repost and
explain what it really is that you are trying to accomplish other than
to annoy the *(@!# out of your visitors.

> Thank you very much for your answerz


Anytime.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
catch doesn't catch a thrown exception Marteno Rodia Java 5 08-05-2009 03:30 AM
Catch the OnItemDataBound event on ComponentArt Menu Luigi ASP .Net 0 03-06-2008 01:57 PM
catch(...) doesn't catch everything Adam C++ 9 02-02-2006 05:02 PM
why catch (...) can not catch such exception John Black C++ 8 08-20-2004 02:34 PM



Advertisments