SitePoint Sponsor

User Tag List

Results 1 to 12 of 12
  1. #1
    SitePoint Member
    Join Date
    May 2001
    Location
    Los Angeles
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can't return to previous page...

    When I type my URL into the address bar www.designforcolor.com and then hit the back button, I'm not able to return the site I was at before. How come?

    Thanks in advance.

    solalmighty
    solalmighty
    More Qs than As.

  2. #2
    SitePoint Evangelist
    Join Date
    Jan 2002
    Posts
    420
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    works for me

    what browser are yu using?
    Wavelan

  3. #3
    SitePoint Member
    Join Date
    May 2001
    Location
    Los Angeles
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    IE 5.5 and NS 4.07.
    solalmighty
    More Qs than As.

  4. #4
    SitePoint Member
    Join Date
    May 2001
    Location
    Los Angeles
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I need to be able to back out simply by clicking the back button. Not by clicking on the drop-down feature of the back button.
    solalmighty
    More Qs than As.

  5. #5
    SitePoint Evangelist
    Join Date
    Jan 2002
    Posts
    420
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    are you on a pc or mac?
    Wavelan

  6. #6
    . Ruchir's Avatar
    Join Date
    Feb 2002
    Location
    Sydney
    Posts
    1,863
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it worked very good here.. maybe theres two funtions running in the page .. maybe try clicking back button Twice !!
    Peace.

  7. #7
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try this

    <input type="button" value="go" onclick="window.history.back">

    or this

    <input type="button" value="go" onclick="for(a=0,len=window.history.length;a<=len;a++){window.history.go(-a)}">

    or this if your really desperate lol (crashes the browser)

    <input type="button" value="go" onclick="for(a=0,len=window.history.length;a<=len;a--){window.history.go(-a)}">

  8. #8
    SitePoint Member
    Join Date
    May 2001
    Location
    Los Angeles
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm on a PC.


    Tried to click twice... no go.

    Andrew J2000 - I need to be able to back out using the browser button, not one using HTML.

    Hmmm.... everyone can do it except me and my client.
    solalmighty
    More Qs than As.

  9. #9
    . Ruchir's Avatar
    Join Date
    Feb 2002
    Location
    Sydney
    Posts
    1,863
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok! i got the problem ! well . when u got to the page (www.designforcolor.com) .. it re-directs a person to its file called - 'home.html'
    Code:
    <script language="JavaScript">
    <!--
    //function doRedirect() {
     var x = document.URL.toLowerCase();
     if (x.indexOf("designforcolor.com") > -1) {
      document.location = "home.html";
     }
     else if (x.indexOf("barcodetoolbox.com") > -1) {
      document.location = "barcodetoolbox.html";
     }
     else if (x.indexOf("sellsoftware.com") > -1) {
      document.location = "sellsoftware.html";
     }
    //else if (x.indexOf("64.225.64.107") > -1) {
    //  document.location = "/giganti/index.htm";
    // }
     else {
    
      document.location = "home.html";
    
     }
    //}
    //-->
    </script>
    this will quickly open home.html in the site. the redirection process is so quick that u return back to home.html and so u are stuck

    i hope it helps
    Peace.

  10. #10
    SitePoint Member
    Join Date
    May 2001
    Location
    Los Angeles
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Wink

    I'll give it a shot.
    solalmighty
    More Qs than As.

  11. #11
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    that should be

    document.location.href or document.location.replace

  12. #12
    SitePoint Member
    Join Date
    May 2001
    Location
    Los Angeles
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ruchir,

    Awesome! Where did you find that script?
    solalmighty
    More Qs than As.


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
  •