Click to See Complete Forum and Search --> : how to disable menubar
lingmingfong
07-01-2003, 09:22 PM
Please teach me how to disable the menubar in the webpage.
I want to prevent user using <back> and <forward> button on the page.
can it be disabled?
thank.:cool:
Originally posted by lingmingfong
[C]an it be disabled?
No, it cannot.
[J]ona
lingmingfong
07-01-2003, 09:43 PM
Are you sure?
Since we can disable the menu bar of a pop up window, I believed that should be a way.
How about only disable the <back> and <forward> button on the bar?
Anyone know?
You can only remove the menubar (completely) by opening a new window with JavaScript. There is no other way.
[J]ona
lingmingfong
07-02-2003, 01:13 AM
Just curious Jona....
if we can disable right click functions....can we disable Toolbars <back> and <forwards>?
What you meant is we cannot use javascript but others to disable it, is it?
nkaisare
07-02-2003, 01:39 AM
Why would you not allow me to click back/forward buttons? Man, you are trying to infringe on my First Amendment rights.
Anyway, there isn't a foolproof way to even disable right click (he can simply disable javascript, or better still use Opera browser :)).
Zifnab
07-02-2003, 05:16 AM
or even easier, just use alt-leftarrow or alt-rightarrow for back and forward (at least in IE)... the only point of disabling the bars is for aesthetic reasons... further than that I fail to see the point of doing it...
What Jona said is that the ONLY way to remove the entire menu bar (and thus those buttons) is in a new popup window that's opened with javascript... there is no other way.
lingmingfong
07-02-2003, 08:18 PM
Dear all,
thank for the response.....appreciated! :)
I am not sure if you guys have noticed that in some internat banking webpages, they actually disabled the menu bar. They dont want user to use <back> and <forward> in the menubar but the buttons that they created for them on the webpage, as it might messy up the figure which they stored in the session. (at least in my country they did that)
some didn't disable the bar, but coded in some counter to detect the user movement, I think that is too troublesome.
I know you can disable it when open a new window. And even you disabled, there is another way to activate the menubar again. but at least for my users, most of them are not smart enough to activate the menubar again. :eek: cause when they cannot find the bar, the will use the button that I provided on the page....:p
nkaisare
07-02-2003, 10:09 PM
There are a lot of people in the world, I'd be happy to kill. No Saddam is way at the bottom of the list. At the top, its those freaking bank webdevelopers. They have no idea what they are doing. My old bank checks for browser, and allows only IE5+ or NS6+. I changed my bank.
My current bank opens 3 html pages on single click... navigation, header and content. It still uses frames. And any click on content window opens a new window with right click disabled (thank God for Opera!!).
And thats not all... the front page of this brilliant bank is 100KB in size. You have to choose a state, then zip code (btw they didnt figure out that zip codes do not change from state to state). Once you enter zip code, they have a nifty javascript display me bank/atm locations. They goddamn load locations for bank/atms in entire US and "smartly" display the right one when I enter my zip code!!!!!!!!! Holy screwballs... how many times do you log in to your bank website to find location of ATMs????? When I click "Personal Banking Login", they show a form, with my a/c number filled in (cookies). No body had the intelligence to check for cookies and send me directly to this page!!!!!!!!
So next time, be careful before u mention bank website. It just puts me in RANT
mode. :D:( :D :( :o :p :confused: :eek: :mad:
nkaisare
07-02-2003, 10:11 PM
Is there a lawyer on this forum. I need to sue my bank for infringing on my first amendment rights by disabling my menubar.
Also Opera deserves a nobel peace prize for nor recognizing disabled right click
nkaisare
07-02-2003, 10:16 PM
Originally posted by lingmingfong
as it might messy up the figure which they stored in the session.
When that happens, they get a "page expired" message. I don't know when will web developers will stop treating people like dodos. A couple of times I get the warning, I will stop using back button. C'mon, is that so difficult to understand.
the will use the button that I provided on the page....:p
If you provided them a button to go back, why disable menu bar back button?
You don't need to answer. I am just getting out the frustration of my matlab codes. 3 night-outs and counting...
lingmingfong
07-02-2003, 10:25 PM
hi nkaisare,
I felt innocent!!!!! :mad:
I am not from the bank line, I just take that for example to ans ur question!!!!! AND I DON'T LIKE INTERNET BANKING AS WELL!!!!! I faced the same problem like urs too!!!
I am now handling a project and my boss asked me to disable the menubar, cause our users keep using those <back> and <forward> button. It sometimes crash the infor which we store in the session. I just want to seek advice from all the experts here........ ......
:( :( :(
nkaisare
07-02-2003, 10:30 PM
Originally posted by lingmingfong
I just want to seek advice from all the experts here...
:( :( :(
My comments were not directed at you. Just plain frustration speaking at 11:30pm. As I mentioned in my previous post
"You don't need to answer. I am just getting out the frustration of my matlab codes. 3 night-outs and counting..."
Your best bet is to place a statement telling your users not to use the back button as it may cause unexpected results. Alternatively, (though I hate to give this advice :)) you can open link to back-button-disabled-pages in a new browser window that does not have menubar. New window will not be a problem here as back button is already disabled (well not quite, but u get the point).
lingmingfong
07-02-2003, 10:32 PM
Ahhh dear....
users are like that.....they will uses watever they see/those they are used to......(properly my button is not pretty enough to catch their attention). :(
Nevermind........I try my best to finish the project....
btw, are you familiar with session?
lingmingfong
07-02-2003, 10:37 PM
Ok....thank u nkaisare!
guess that is the "best" solution....
ha!
nkaisare
07-02-2003, 10:38 PM
Hey, I just looked at my bank page. The menu bar is disabled when they open a new browser window. They do that whenever I click on "Account Details" or "Transactions" or "Transfer" links. Otherwise, the buttons are "active".
lingmingfong
07-02-2003, 10:46 PM
Hi Nkaisera,
can javascript detect the action performed by user at menubar?
onback()? onforward()?
sorry I still very new to this ....
lingmingfong
07-02-2003, 10:49 PM
that mean when you click "Account Details" or "Transactions" or "Transfer", it will then popup a new window right? but the parent window in behind still have the menubar, is it?
I know .....just I cannot put it into my project logic......
<script language="JavaScript">
window.history.forward(1);
</script>
Cheerio
Appu :)
samliew
10-26-2007, 12:05 AM
<script type="text/javascript">window.history.forward(1);</script>
Put that on every page that you don't want people to 'go back'.