SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: form buttons

  1. #1
    SitePoint Addict
    Join Date
    Sep 2001
    Location
    UK
    Posts
    303
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    form buttons

    I would like help creating a 'Cancel' form button, that when clicked simply sends the user back one page. It must be back as opposed to just sending them to a designated page - as this page can be loaded from multiple locations.

    Thanks

    Azaar

  2. #2
    morphine for a wooden leg randem's Avatar
    Join Date
    Jun 2002
    Location
    .chicago.il.us
    Posts
    957
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <input type="button" value="Cancel" onclick="history.go(-1);" />
    ----Adopt-a-Sig----
    Your message here!

  3. #3
    SitePoint Addict
    Join Date
    Sep 2001
    Location
    UK
    Posts
    303
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for your help.

    I have confirmed this works in IE, Mozilla and Opera.

    Azaar
    Last edited by Azaar; Oct 28, 2002 at 16:05.


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
  •