Help with javascript snippet

Discussion in 'Javascript' started by JC, Jan 25, 2007.

  1. JC

    JC Guest

    What's the javascript AUTOMATIC command for a page to return to the
    previous.
    I know the (back) command for a click, or a mouseover, but is there a
    command which automatically does it ?

    -JC
     
    JC, Jan 25, 2007
    #1
    1. Advertising

  2. JC

    gg9h0st Guest

    On 1¿ù25ÀÏ, ¿ÀÈÄ12½Ã46ºÐ, "JC" <>wrote:
    > What's the javascript AUTOMATIC command for a page to return to the
    > previous.
    > I know the (back) command for a click, or a mouseover, but is there a
    > command which automatically does it ?
    >
    > -JC


    think u want this.

    <body onload="window.history.back();">

    just add to body tag like this. easy.
     
    gg9h0st, Jan 25, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kavitha Rao

    Help!-Errors while running this snippet code

    Kavitha Rao, Jul 2, 2003, in forum: C Programming
    Replies:
    2
    Views:
    745
    Kavitha Rao
    Jul 3, 2003
  2. Replies:
    13
    Views:
    569
    ajonesfl
    Jul 11, 2007
  3. Matthias Braun
    Replies:
    3
    Views:
    922
    C A Upsdell
    May 8, 2010
  4. Vipul Kapadia

    Need explanation for a Javascript snippet

    Vipul Kapadia, Apr 20, 2009, in forum: Javascript
    Replies:
    6
    Views:
    133
    Gregor Kofler
    Apr 20, 2009
  5. Ken Snyder

    JavaScript snippet to hide spam

    Ken Snyder, Feb 10, 2011, in forum: Javascript
    Replies:
    3
    Views:
    125
    David Mark
    Feb 10, 2011
Loading...

Share This Page