+ Reply to Thread
Results 1 to 5 of 5

 

Thread: hard coding the back arrow

  1. #1
    Dot Com Pennyaire

    Status
    Offline
    Join Date
    Jan 2004
    Location
    this month, Guatemala
    Posts
    626
    Thanks
    0
    Thanked 0 Times in 0 Posts


    Hi,
    I wondered if there's a way I can hard code the destination of the browser back arrow.

    The reason is that I have a form that leads to the next page via javascript and clicking the back arrow results in refreshing the page, so the visitor will get stuck on the page unless they select a new menu item, which they might not think of doing.

    I simply want to hard code the back arrow to return to the home page.

    Thanks
    Linda
    I used to have an open mind but my brains kept falling out.

  2. #2
    Typing with both fingers.

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Allt Y Coed Farm, North Pembrokeshire
    Posts
    4,122
    Thanks
    246
    Thanked 197 Times in 156 Posts
    Code:
    <a href="javascript: history.go(-1)">Back</a>
    Is this what you are looking for?

    Or do you mean you want to change the main Back button on the browser top bar?

    If so maybe you could open your form in a window that does not have the navigation bar on it - so the user won't be able to press back.

  3. #3
    Dot Com Pennyaire

    Status
    Offline
    Join Date
    Jan 2004
    Location
    this month, Guatemala
    Posts
    626
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi,
    Thanks Barry - I don't want to add a back link, but I want to change the destination of back arrow in the browser.

    How do I open a new window without a navigation bar? That would suit my purpose equally well, perhaps better, in fact.

    Cheers
    Linda
    Last edited by lakrasia; 29-09-05 at 10:15 PM.
    I used to have an open mind but my brains kept falling out.

  4. #4
    Typing with both fingers.

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Allt Y Coed Farm, North Pembrokeshire
    Posts
    4,122
    Thanks
    246
    Thanked 197 Times in 156 Posts
    I'm not to sober at the mo, but have a look at this code:-

    Code:
    <html>
    <head>
    <script language="JavaScript" type="text/JavaScript">
    function OpenBrowserWindow(YourURL,WindowName,TheFormat) {
    window.open(YourURL,WindowName,TheFormat);
    }
    </script>
    </head>
    <body>
    <a href="#" onClick="OpenBrowserWindow('index.php','newform','location=yes,status=yes,scrollbars=yes,resizable=yes')">Open</a>
    </body>
    </html>
    Just insert the javascript into the head of the page where you want the popup to appear then insert the body contents into the page body (change the index.php to the page you want to popup).

    This will then popup your 'form' page into a window without the back button on top (you can still right click and back though).


    The back button won't show in the title bar of that page.

    Edit - >>> the forum puts a space inbetween the location=*"yes" - take** that out <<<

  5. #5
    Dot Com Pennyaire

    Status
    Offline
    Join Date
    Jan 2004
    Location
    this month, Guatemala
    Posts
    626
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi,

    That's really good of you to help, if you're enjoying a drink!

    Still couldn't get it working though and don't quite see why I'd want an href in there. Getting a bit tired, so I'll have a look tomorrow, or I might just decide to stick a "click here" link to return to index.php. Lazy and not quite as tidy, so I'd like to figure out the pop-up thing if I can!
    I used to have an open mind but my brains kept falling out.

+ Reply to Thread


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Feed Back Thanks and Update (Bluefresh)
    By jamcamuk in forum Affiliate Marketing Lounge
    Replies: 0
    Last Post: 13-03-04, 12:31 PM
  2. Hi Folks I'm back - well sort of :-)
    By perfiliate in forum Affiliate Window & buy.at
    Replies: 1
    Last Post: 09-07-03, 11:55 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
To Top

Content Relevant URLs by vBSEO 3.5.0 RC2