473,396 Members | 2,023 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

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
Jul 23 '05 #1
3 1912
"John" <za**@freesurf.ch> wrote in message
news:9d*************************@posting.google.co 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 <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #2
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
Jul 23 '05 #3
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
Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ray Torres | last post by:
I would appreciate any help with the following problem. I have several different htm pages with (simalar) forms that are processed by the same PHP script. If there is data missing on the form,...
3
by: Simon Wigzell | last post by:
I'm using : window.location.href = to redirect to a web page. From the new webpage, when you click the browser "Back" button you of course end up on the same old page and get redirected...
5
by: Nick Li | last post by:
Hi, I need to create a html page so that "Back" button(or some other button) is disabled in IE browser. I would appreciate your help. Nick Li
7
by: George | last post by:
I am trying to set up a login-logout website. I have a cookie about the login status. I put it as logout once the logout link is clicked. And I put a little security check about the status of...
4
by: Food Groupy | last post by:
Hi... I use a function something like this, <a href="javascript:history.back();">Return to original page</a> to give people a "back" option sometimes on pages. Is there any way of...
11
by: John A Grandy | last post by:
asp.net 1.1 ie 6 how to lock-out the user from clicking the browser "Back" button ?
8
by: Coleen | last post by:
Yes, I know why would I want to create a back button when there is one on the browser? Because that's what the users want! they want a "Previous" button that they can click from any web page in...
0
by: sagarp86 | last post by:
How to lock / deactivate "Refresh" and "Back" button on browser. Problem is in voting application. Once we click for a vote application goes to next page and increament one vote in the database....
9
by: Kelii | last post by:
Currently I have a button that allows the user to "Close Company" - at the moment it doesn't do anything :D I would like the button to "disconnect" the back end then show my Open Company form. ...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.