Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
creating a back button
Old 07-28-2006, 09:10 AM creating a back button
jason_bristol's Avatar
Ultra Talker

Latest Blog Post:
New site - ConnectFrench.com
Posts: 312
Name: Jason Eyermann
Location: england bristol
Trades: 0
HTML Code:
<a href="#" onClick="history.go(-1)" target="_self" onmouseover="MM_swapImage('navbarbottombackonly2blue_r2_c2','','images/navbarbottombackonly2(blue)_r2_c2_f2.gif',1);" onmouseout="MM_swapImgRestore()"><img src="images/navbarbottombackonly2(blue)_r2_c2.gif" alt="" name="navbarbottombackonly2blue_r2_c2" width="107" height="33" border="0" id="navbarbottombackonly2blue_r2_c2" />
hello all.
I want to create a back button to go back to last page. I thought I could just place the back button after <a href="#". I used onClick="history.go(go-1)" as shown above. but I can't get it to work. how do I do it?

It's an image back button. The page link is click here

thanks for anyhelp!
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
jason_bristol is offline
Reply With Quote
View Public Profile Visit jason_bristol's homepage!
 
 
Register now for full access!
Old 07-28-2006, 09:51 AM Re: creating a back button
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
It should look like this:
<a href="javascript:history.go(-1)"><img src="../../images/backbutton1.gif" alt="go back" width="85" height="32" /></a>
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-29-2006, 01:07 AM Re: creating a back button
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
Of course, if someone visits the page from another link, like on a search engine, they just get sent back to the search engine page, not yours. Why not link to the previous page manually? It looks like your guest book is only available from the homepage, so why not link to there?

Also, I tend to stay away from the href="javascript:blah()" - User agents that don’t support JavaScript will return an error using that href value.
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Old 07-29-2006, 04:35 PM Re: creating a back button
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Well, I wouldn't ordinarily use that method either, people are going to use their BACK button most of the time anyway. A hard link to a previous page would be my approach on something like that too.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-02-2006, 01:36 AM Re: creating a back button
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
If your using a scripting language such as php, you can do this neat trick:

<a href="<?php echo $_SERVER['HTTP_REFERER']; ?>" />Back</a>
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to creating a back button
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.25103 seconds with 12 queries