Back

I want to place a graphics on a web page, that when clicked, performs the back function like the 'Back' button IE toolbar.

Can anyone help me?
LVL 2
afpcosAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

1cellCommented:
are you looking for the source code?  do you want Java, Javascript, or HTML?  There are many different ways to do this but they all differ a little bit.  Do you want the back button to take the viewer to the last page they were on regardless of what page it was or do you want it to go ack to the specific page on your site?
0
knightEknightCommented:
Try this:

<A href="#" onClick='history.go(-1);return(false);'><IMG src="back.gif" border="0"></a>
0
knightEknightCommented:
.. and if you want it to go to a specific page:

<A href="thespecificpage.html"><IMG src="back.gif" border="0"></a>
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

1cellCommented:
ouch!  that's my toes!
0
knightEknightCommented:
Sorry, didn't mean to step on them -- but the code for both cases was  short.  However, usually Back buttons of this nature have more complex requirements.  afpcos will have to comment on that.  :)
0
FRehmanCommented:
<HTML>                    
<HEAD>                    
<TITLE></TITLE>          
<script language=Javascript>
function test()
{
      history.back(1)    
}
</script>                
</HEAD>                  
<BODY >
<a href="javascript:test()">
<Img src="test.gif"></a>
</body>
</html>
I test it it work fine
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rupertsCommented:
I'm with Mr Knight on this one! It's hardly a complex question! Just a little trick you don't know how until you know it (mmm that last sentence sounds like crap...but anyway).
0
knightEknightCommented:
speaking of tow-stepping...   ;)
0
rupertsCommented:
Mr Rehman, look at the complexities of javascript, look at your code...how complex, what a total overkill surely this would be better written in a java applet on a dedicated sun sparc web server :-)

as KEK said..
<A href="#" onClick='history.go(-1);return(false);'><IMG src="back.gif" border="0"></a>

Same job half the code..

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.