Next and Back buttons

User 516374 Photo


Registered User
6 posts

Can anyone tell me how to create Next and Previous buttons to go back and forth between a group of pages. I have the button shapes, but need the programming or setting to create the action.

Thanks,

-Sandy
User 2000538 Photo


Registered User
1,392 posts

Just hyperlink the the page you want to go forward or back to.
I know you believe you understand what you think I said...but I am not sure you realize that what you heard is not exactly what I meant.


User 516374 Photo


Registered User
6 posts

Thanks, but, I have several pages to do this to, so I was hoping there was a way to just use a next and previous command rather than having to hyperlink to each individual page. Maybe I'm being lazy.

-Sandy
User 2000538 Photo


Registered User
1,392 posts

Sandy LaCorte wrote:
Thanks, but, I have several pages to do this to, so I was hoping there was a way to just use a next and previous command rather than having to hyperlink to each individual page. Maybe I'm being lazy.

-Sandy


Could be perhaps using CSS or Javascript but I haven't come across it. Doesn't mean its not possible though :)
I know you believe you understand what you think I said...but I am not sure you realize that what you heard is not exactly what I meant.


User 2000538 Photo


Registered User
1,392 posts

Okay here is a Javascript one:

"onclick=history.go(-1)" to go back or "onclick=history.go(1)" to go forward

Not sure how much you know about Javascript? But you would insert the reference to your js file using the HTML tool.
I know you believe you understand what you think I said...but I am not sure you realize that what you heard is not exactly what I meant.


User 516374 Photo


Registered User
6 posts

Thanks for the info. Unfortunately I'm not really up on Javascript, but I'll see what I can do with it.

-Sandy
User 271657 Photo


Ambassador
3,816 posts

In VSD it just takes a second to turn something into a link. Just use the add link docker (chain link icon in top menu) - click on the page names you want the back/next buttons to go to - no code required. (Most site visitors would expect to find a menu/navigation bar as well so they can go directly to a page rather than back>back>back for example).
I love deadlines. I like the whooshing sound they make as they fly by. (Douglas Adams)
https://www.callendales.com
User 2000538 Photo


Registered User
1,392 posts

Yes that's true Paintbrush but Sandy was after something that didn't require the link being changed on every page.

I mentioned about the hyperlinking before but you explained it so much better :)

I know you believe you understand what you think I said...but I am not sure you realize that what you heard is not exactly what I meant.


User 271657 Photo


Ambassador
3,816 posts

Maybe try Googling for a code snippet somewhere? I can see how a "back" button might work, but how would the "next" button know where to link to - seems one would still need to create those links?

Here's a "back" button snippet from http://javascript.internet.com/navigati … utton.html

1. Copy the coding into the BODY of your HTML document -->

<!-- STEP ONE: Paste this code into the BODY of your HTML document -->

<BODY>

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<a href="#" onClick="history.go(-1)">Back</a>
<input type=button value="Back" onClick="history.go(-1)">

<!-- Change the value of -1 to any number of pages you would like to send your visitors back -->

<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size: 0.60 KB -->

I love deadlines. I like the whooshing sound they make as they fly by. (Douglas Adams)
https://www.callendales.com
User 516374 Photo


Registered User
6 posts

Thanks Everyone. I'll give these ideas a try.

Sandy

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.