Back function

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Carramba

    Back function

    how to create back url that will by inteligent, I mean ll go back independet
    from with page you came?

    thanx in advance


    ---
    Outgoing mail is certified Virus Free.
    Checked by AVG anti-virus system (http://www.grisoft.com).
    Version: 6.0.514 / Virus Database: 312 - Release Date: 2003-08-28


  • Bert

    #2
    Re: Back function

    On Thu, 4 Sep 2003 15:11:42 +0200, "Carramba" <carramba@bootr e.com>
    wrote:
    [color=blue]
    >how to create back url that will by inteligent, I mean ll go back independet
    >from with page you came?
    >
    >thanx in advance[/color]

    you could use client side scripting like javascript.

    <a href="javascrip t:history.back( )">back to where you came from</a>

    with php you could check for the refering page, but not all browsers
    supply this information.
    <a href="<?= $_SERVER['HTTP_REFERER'] ?>">back</a>

    B.

    Comment

    Working...