#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2012
    Location
    Harrisburg, NC
    Posts
    2
    Rep Power
    0

    Coding 'back one page' in image


    The line of code

    <FORM><INPUT TYPE="button" VALUE="Return" onClick="history.go(-1);return true;"></FORM></div>

    has served me well in form style, but we've been doing some updating and would like to move this code to an image. I tried

    <a href="onClick="history.go(-1);return true;">
    <input type="image" src="/graphic.jpg" alt="Submit button">

    but there's no response on the image.
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2012
    Location
    Adelaide, AU
    Posts
    2
    Rep Power
    0
    Hi,

    The code you have posted is quite 'invalid' and not the right way to go about using an image field input type.

    Try doing this:
    Code:
    <input type="image" src="/graphic.jpg" alt="Submit button" onclick="history.go(-1); return true;" />
    Hopefully that works for you.

    Cheers,

    Jason.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2012
    Location
    Harrisburg, NC
    Posts
    2
    Rep Power
    0
    Thanx much, Jason. That did the trick, issue resolved.

IMN logo majestic logo threadwatch logo seochat tools logo