CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 7th, 2003, 02:39 PM
dorocky dorocky is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: Cary, NC
Posts: 27 dorocky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
back button inside CSS layout

I used one of the CSS stylesheets to create 3 column layout that I found on this site. How would I put a Back Button (javascript) inside one of the columns at the buttom. Are there any free javascripts for back buttons or an example of a stylesheet.

Reply With Quote
  #2  
Old April 7th, 2003, 11:25 PM
IBM IBM is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 173 IBM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 11
a back button could be anything from a form button, to a link and even an image...etc...etc.. etc...

all you really need to do is use the javascript history object, and join it with an onclick event...

so for a link you could do it like this:

Code:
<a href="url.com" onclick="javascript:history.go( -1 );return true;">[back]</a>


I used that code a long time ago, not sure on how standards compliant it is...but now that you see how easy it is, you could
always do a little research on the topic.
(java script should be one word, the forum separates it)

good luck.

oopss..forgot, can't have a url, it defeats the purpose of the back button...
so like the next post has it... use # in place of url.

Last edited by IBM : April 7th, 2003 at 11:32 PM.

Reply With Quote
  #3  
Old April 7th, 2003, 11:28 PM
mttatkns mttatkns is offline
Got source?
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Mar 2003
Location: Laguna Niguel, California, USA
Posts: 2,331 mttatkns User rank is Private First Class (20 - 50 Reputation Level)mttatkns User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 13
<a href="#" onClick="history.go(-1)">Back</a>
*OR*
<input type=button value="Back" onClick="history.go(-1)">

Reply With Quote
  #4  
Old April 8th, 2003, 06:31 AM
dorocky dorocky is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: Cary, NC
Posts: 27 dorocky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
back button

Thanks for the help.
Debbye

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > back button inside CSS layout

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap