Disabling of FORWARD and BACK Button of Internet Explorer.......

Hello everybody,
Can anyone tell me how to disable the FORWARD and BACK Button of Internet Explorer through JavaScript.......If possible give me the code snippet.....

Hi
I I tell you the answer, I suppose it means you'll be able to spend less time on JavaScript and more time on Java, so here goes:
Open your page in a new window using window.open(...). This JavaScript takes lots of parameters, such as the page you want to display in the window, as well as settings for hiding the toolbar (which includes the forward/back buttons).
Do a search on the net for window.open for full syntax. I think you can modify the properties of the current window if you want to stay in the same window, but can't remember the syntax.
Note you can also disable the right mouse button by defining the following function:
<SCRIPT language="JavaScript">
<!--
var message="Right-click disabled!";
function click(e) {
if (document.all) {
if (event.button==2||event.button==3) {
alert(message);
return false;
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=click;
// -->
</SCRIPT>
I don't know how to stop the user from pressing 'Backspace' unless you use Java to monitor the navigation.
Hope this helps

Similar Messages

  • Disabling FORWARD and BACK Button of Internet Explorer thru JavaScript....

    Hello everybody,
    Can anyone tell me how to disable the FORWARD and BACK Button of Internet Explorer through JavaScript.......If possible give me the code snippet.....

    You can not do this in JavaScript.
    However, if you set the right response headers in the response IE will disable them:
    response.setHeader("Pragma","no-cache");
    response.setHeader("Cache-Control","no-store");
    response.setHeader("Expires","0");
    would do the trick.
    Silvio Bierman

  • How do you use forward and back button on mouse and use "zoom" in web browser.

    Ok so apparently this forum is ruled with an iron fist or something my very honest and truthful problems with these issues seem to have been instantly deleted in my last discussion?
    I'll try this once more.
    1) How do you use the forward and back button on a mouse without having to buy a product like Steer Mouse? There must be a way to do this without having to buy a program given it's such a useful feature that 99% of users need. I don't want to spend hours researching something that should already work. Any advice?
    2) How do you zoom in for web browsers like Chrome without it globally zooming in everything on the monitor (even background applications). I don't want to zoom in background applications. I want to be able to zoom in the web browser and still maintain all the features like the side bar, not just a little magnifying glass type thing.
    I'm currently zooming in with the CTRL-Middle Mouse button, but I can't find a way to use this feature so it's useful to browse the web it seems to not scale the browser correctly but rather is a global zoom. Any solution for this?

    Thanks so much!
    Like I said I am new to Apple products so it's still unclear to me which programs I do or don't need as I'm setting up and configuring all my software and devices.
    The Logitech Control Center appears to work perfectly for what I was trying to do!
    I accidently clicked "This helped me" instead of "This Solved My Question", sorry about that this was a solve!

  • I was messing with the computer, not sure what i hit but now all my toolbars at the top of the screen are gone? (file, edit, history, tools and my forward and back button). Please help me get these settings back to the way they were?

    My file, edit, view, history, bookmarks, tools, and help buttons at the top of the screen are gone, along with my forward and back button.

    For details of how to restore it, see https://support.mozilla.com/kb/menu+bar+is+missing
    Once the menu bar is restored, you can use the Toolbars entry in the View menu to restore other toolbars such as the navigation toolbar.

  • In Firefox 3.6.10 I was able to go forward and backwards between pages without the page defaulting to the top of the page. Is there any way to prevent the page from automatically moving to the top when using the forwards and back buttons in Firefox Four?

    I like to be able to navigate backwards and forwards without having to scroll down and find where I was previously. In Firefox Four, when using the forwards and back buttons, the page will automatically return to the top of the page. Is there any way to change this setting in Firefox Four to prevent it from doing that?

    Thanks for the response. No Time Machine, but I probably have a backup from a few months ago on an external hard drive. :/ I guess it'd have useful history, but not if it overwrote the last 3 months or so of Awesome Bar, that might not be so great.

  • Forward and Back Buttons Don't Work

    Greetings,
    My forward and back buttons on the mouse don't work in PSE 7. Instead I always have to click the forward or back buttons on the toolbar, or use keyboard shortcuts (alt+left arrow or alt+right arrow).
    Does anyone else have the same problem?
    Thanks,
    Shane.
    Photoshop Elements 7
    Windows Vista Home Premium SP2

    This is working for me. The forward and backward buttons on the toolbar would work only with pressing of Alt button i.e. Alt+Left arrow.
    Suppose you are in Single image view, and press left and right arrow keys, application would switch to previous and next photo respectively.
    Please let me know if you have other concern.
    ~Sourabh

  • Forward and back buttons greyed out, no forward or back available in right click menu either

    After upgrading to the latest FF14 the forward and back buttons and menu versions of forward and back are greyed out.
    Tried the sqllite check and it says all my databases are fine. Tried safe mode, same thing. Tried a new profile, same thing.
    Any other suggestions?

    You could have backed up your profile folder. If you did, [[Recovering important data from an old profile]] can help :)

  • I have lost the use of the 'forward' and 'back' button

    On Win 7 I have lost the use of the forward and back button - both are greyed out - except on this page ??? when I leave this page the greyed out appears on all tabs or links in use. I am using Firefox 3.6.16. To get to this page I have 7 tabs open at present and all ( except this one - odd! ) are greyed out.

    A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    See:
    *http://kb.mozillazine.org/Firefox_crashes
    *https://support.mozilla.com/kb/Firefox+crashes
    If you have submitted Breakpad crash reports then post the IDs of one or more Breakpad crash reports (bp-xxxxxxxx-xxxxxxxxx-xxxx-xxxxxxxxxxxx).
    You can find the IDs of the submitted crash reports on the <i>about:crashes</i> page.
    You can open the <b>about:crashes</b> page via the location bar, like you open a website.
    See:
    *http://kb.mozillazine.org/Breakpad (Mozilla Crash Reporter)

  • Forward and back Buttons

    I am trying to find a way to display a forward and back
    button in my generated Flashhelp so i can easily return to the
    previous topic when clicking through hyperlinks. I cannot for the
    life of me figure out if i can do it or if a need a programmer to
    do it?

    Welcome to our community, Kate
    This aspect would require changes to the skin files. Those
    changes would need to occur in the ActionScripting embedded in the
    Flash files. So the answer to whether you would need a programmer
    is that you need someone that understands how to edit Adobe Flash
    content.
    Cheers... Rick

  • Forward and back buttons wont work

    I'm runnung Tiger 10.4.5 and Safari 2.0.3, for some reason the forward and back buttons won't "activate" or work. Everything else is fine. There is nowhere I can download a new copy of 2.0.3. Any help is appreciated.

    System Preferences -> Keyboard & Mouse -> Mouse Tab
    Anything there?
    If not have a look at: http://www.usboverdrive.com/
    iFelix

  • Can you use the native GTK Forward and Back buttons instead of the default ones?

    Hello!
    On old versions of Firefox, the default theme always used the native GTK forward and back buttons. Ever since I updated Firefox, it overwrites these with its own arrow. Does anyone happen to know off the top of their head if it's reversible?

    It looks like the GTK theme was not updated to support versions of Firefox after version 29. Have you contacted the developer about this as well?
    Looking for a hack you may find more answers in mozillazine.org.

  • Ghostery disables forward and back buttons in version 10

    Forward and back arrows are greyed out and do not function when Ghostery is enabled. If I start in safe mode, without Ghostery, the forward and back arrows function properly.

    -> [[Back and forward or other toolbar items are missing]]
    If the buttons are working in -> [[Safe Mode]], then you need to make sure which extension was causing the problems.
    * [[Troubleshooting-extensions-themes#w_test-for-faulty-extensions|Test for faulty extensions]]
    * When you find-out which extension was the source of problem, Contact the Add-on's Developer about this issue and Report the problem.
    Check and tell if its working.
    Not related to your problem but some of your Firefox Plugins are out-dated
    * Update All your Firefox Plugins -> [https://www.mozilla.org/en-US/plugincheck/]
    * '''When Downloading Plugins Update setup files, Remove Checkmark from Downloading other Optional Softwares with your Plugins (e.g. Toolbars, McAfee, Google Chrome, etc.)'''

  • Apple TV update 5.1 broke chapter forward and back buttons.

    Ever since updating to Apple TV software 5.1 (iOS 6), the chapter forward and backwards buttons just make the video stop playing and go to the movie/episode selection screen.  Is anyone else having this problem?

    Boy I am glad I found this thread. I am having this exact same issue with my Harmony Remote and Apple TV after the latest update. I thought my Harmony Remote was broken since the Apple Remote still functions correctly. Specifically, the chapter forward and backwards buttons do not work correctly, they skip the song back a few seconds. Or, if at the beginning of a song, they skip backwards to a seemingly random track on the album. Thanks to this thread, I submitted a bug report at http://www.apple.com/feedback/appletv.html. Hopefully they will send out an update to fix this. I thought I had dropped my Harmony one too many times on the floor and it finally sketched out. Whew

  • How to place Forward and Back button in left pane of WebHelp?

    Along with buttons for Contents, Index, Search, and Glossary, I want to put buttons for Forward and Back in the left pane of my WebHelp. These buttons appear automatically on the WebHelp Skin Editor dialog box in an earlier version of RoboHelp, but in RoboHelp HTML 10, they do not appear. What do I have to do to enable them? I see there was another article about this on the RoboHelp forum, but I really don't understand what it's telling me to do.
    Thanks for any help!

    I believe I have covered that aspect in a file you may download from the link below:
    Click here to view the page
    Cheers... Rick

  • The forward and back buttons in firefox 4 beta 7 dont work after trying to customize and the bookmarks button only shows when customizing

    after installing firefox 4 beta 7 any customization of navigation bar breaks the forward and back a page buttons they stop working and and restoring the default buttons option it still doesn't work even in the safe mode and the text in menu buttons looks glassy

    What I found was that anytime I installed one of the beta's, as soon as I tried to customize the bars and hit the "small icons" checkbox from customize that I would no longer be able to have the round shaped foward back buttons but only square (rectangle) small buttons.
    To get those round ones back, but never again to the right of the "File - Edit - etc" bar, all I did was move all the buttons down to the navigation or another bar below as I have the space.
    The problem still occurs that anytime I attempt to put them back up top beside the file etc options they go back to those small rectangle buttons :(

Maybe you are looking for

  • How to manage c877(outside) in RFC1483 mode through ASA5505 from (inside)network

    Hi All Here is a quick summary of my network setup. ISP ADSL2 -- C877 Router(RFC1483) -- ASA5505(PPPoE) -- Internal network(s). I am trying to figure out how to correctly configure my C877 & my ASA so I can telnet and manage the C877 from one of the

  • How do I restore applications from Time Machine after installing Mavericks?

    I have a 2010 13" MBP and it was running slow, so I used internet recovery to install Mavericks. I had hoped to reinstall all my applications such as Office, iWork etc from my Time Machine backups but it won't let me. I wonder if since I erased my ol

  • Can't login IE11 windows 8.1 HP laptop

    The BT sport website freezes when I try to login in via IE11 using windows 8.1 on my laptop. There is no error message, and task manager shows no activity, it just sits there. I have to close the browser to exit. I can login using Chrome on the same

  • Can't Download Blackberry Applicatio​n Monitor

    Can't download Blackberry Application Monitor to my 9650?  It shows to be compatiable with the 9650 but when trying to download, it states that it is not available for the 9650.  I'm confused.  Does anyone know what the deal is?

  • Not happy with Adobe PE7 upgrade cost

    To make a long story short I have been using PE3 until late this year due to finance issue (out of work for over a year). Finally on July 28 I upgraded so that I can use PE on my Vista computer - and although my computer is no great speed deamon (3GH