Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 1

Question

Quite simply I need to add a 'back' button in Qubert so that users can return to the previous page.I don't write code but am happy to copy and paste any code you may suggest to a wherever it needs to go. Many thanks

Edited by wpurcell
retag

Share this post


Link to post

12 answers to this question

Recommended Posts

  • 3

Here's a good post on CSS-Tricks about adding a back button to a page.

http://css-tricks.com/snippets/javascript/go-back-button/

As Chris points out, browsers have back buttons so this isn't necessary usually. But if you need to get it done, this code sample from the post will do the trick.


<input type="button" value="Go Back From Whence You Came!" onclick="history.back(-1)" />    


Developer Evangelist at Squarespace.

Share this post


Link to post
  • 1

I am also in need of a back button for each of my "pages" of my work. Please see this page as a referencehttp://www.yaochengdesign.com/art-prints/waves

I tried the code but I didn't know where to place it (header? footer?) since I need it in multiple places. Also, if I want to use my own image for the back button, where I do write that in the code?

Thanks!

Share this post


Link to post
  • 0

The code posted by foleyatwork is good. Here's some more information thought ...

If you're using an

<a>

tag remember that the

href

attribute will cause Safari and Firefox (and maybe Explorer, but who cares really) to load an empty page, or refresh the page which creates problems. In order to avoid that, remove the

href

attribute altogether, and instead use an inline style for the cursor for when you hover over it.

Here is the code similar to what foleyatwork posted above but without the button styling


<a onclick="window.history.go(-1);" style="cursor:pointer;" >GO BACK</a>

Share this post


Link to post
  • 0

I am looking for that too. More specifically, a BACK (to last page in the series) and NEXT (to next page in the series) like there is in the blog. I want to make it easy for the user to just click next, next, next without returning to the 'gallery' page. ideas?

Share this post


Link to post
  • 0

You can try out it easily. Yes its very easily. I have done it and you can also do.


This is [gta 5 android][1], site you can download your favourite games including [download clash of lights][2] including unlimited resources. [1]: https://gta5-mobile.com [2]: https://theclashoflights.info

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...