Results 1 to 5 of 5
  1. #1

    Default How to fix: my website's home page disables the back button on your browser

    An unhappy visitor has just informed me that my home page "mouse traps" people to my site by disabling the "back button". I tested it and yes, when you click back on your browser, it just reloads my home page.

    I used to have a separate home page, but last year I converted it to a "define pages" page which is the main shop page of my cart to make it easier for me to change it (Tools -> Define Pages Editor).

    My website is mycustomstory.com.

    Can anyone tell me how to disable the "disable back button" behavior?

    Thanks.

  2. #2
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    843
    Plugin Contributions
    0

    Default Re: How to fix: my website's home page disables the back button on your browser

    I *think* it might be because you have a javascript in place on your index page that redirects to the shop directory

    Code:
    <script language="Javascript">
    <!--
    
    var URL   = "/shop"
    var speed =00000
    
    
    function reload() {
    location = URL
    }
    
    setTimeout("reload()", speed);
    //-->
    </script>
    I am by far no expert LOL but I am thinking given that any visitor is redirected to the shop directory, whenever they click the back button it would just take them 'back' to the main index page which then again redirects to your shop directory.....if that makes sense LOL

    There are other methods of redirecting, including meta refresh and .htaccess plus others :)
    HunnyBee Design
    "A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

  3. #3

    Default Re: How to fix: my website's home page disables the back button on your browser

    Thanks. I didn't even look at the index, I went straight to the shop index.

    Do you know how to fix it?

    When I moved to a new hosting company, they suggested I lose my landing page and just have people start on my shop page. It appears instead of removing the landing page and making my home page my shop page, they just did a redirect.

    Is there some code I could add to the index page that would do "if user clicks back then override redirect"?

  4. #4

    Default Re: How to fix: my website's home page disables the back button on your browser

    I should add that I did change the code to:

    <html>
    <head>
    <title>My Custom Story Redirect to Shop</title>
    <META http-equiv="refresh"
    content="0;URL=http://mycustomstory.com/shop/">

    </head>
    </html>

    And tested it with the same results on Firefox. I just also tested on IE and it works properly (allows the user to go to the website they were on before mine).

    And ideas on how to make it work for Firefox as well are greatly appreciated.

    thanks.

  5. #5

    Default Re: How to fix: my website's home page disables the back button on your browser

    It's working now on both browsers. Thanks for your help!

 

 

Similar Threads

  1. v139h How to Make the LOGO link point to the website home page in parent folder.
    By lynbor in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 5 Jan 2016, 10:04 PM
  2. Can't Log In to Admin Section - takes me back to website home page
    By EducatedSavage in forum General Questions
    Replies: 0
    Last Post: 31 May 2011, 06:43 AM
  3. How do I remove the back button on the shipping/returns page?
    By injected in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 5 May 2010, 09:11 PM
  4. Admin Back Button takes me all the way to Home Page??
    By LilleyPadGifts in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 13 Sep 2007, 08:22 PM
  5. is there a program to view how your website looks in each browser?
    By bfwdesigns in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 9 Oct 2006, 09:00 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR