Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Can I do this with History.go?
07-03-2011, 02:29 PM #1
- Join Date
- Jul 2011
- Thanked 0 Times in 0 Posts
Can I do this with History.go?
Hi all, first post and a bit of a newb, so please be gentle
I have a file that generates web galleries in Adobe Lightroom. They are generated depending on which files are selected and the metadata in those files.
Basically it is a series of pages of thumbnails called index.html index_1.html index_2.html etc.
Then a set of pages for each individual image.
An example can be seen here: http://22.214.171.124/jonrouston/clients/su-dathan/ (the page navigation links are not great, but I have addressed that, they're at the bottom >> )
Currently if a user clicks on a photo there is a 'return to thumbnails button at the top, but this always takes them to /index.html
So the user could be at a picture after browsing to /index_39.html and still get returned to /index
Is there any way I can use history.go to find the last instance of index.html Or index_x.html (where x is any number) and take them back to that instead?
Thanks for any help
07-03-2011, 08:07 PM #2
- Join Date
- Jan 2011
- Thanked 606 Times in 605 Posts
<INPUT TYPE="button" VALUE="Go" onclick="history.go(-1)">
should take to last page you were on.