[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 152
  • Last Modified:

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?
0
afpcos
Asked:
afpcos
  • 4
  • 2
  • 2
  • +1
1 Solution
 
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 new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
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
 
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

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

  • 4
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now