# Creating a forward button using an array

**URL:** https://forum.kirupa.com/t/creating-a-forward-button-using-an-array/148726
**Category:** Uncategorized
**Created:** [May 23, 2005, 1:45am UTC](https://forum.kirupa.com/t/creating-a-forward-button-using-an-array/148726 "2005-05-23T01:45:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![electrify](https://avatars.discourse-cdn.com/v4/letter/e/b77776/32.png) [@electrify](https://forum.kirupa.com/u/electrify)
#### Post date: [May 23, 2005, 1:45am UTC](https://forum.kirupa.com/t/creating-a-forward-button-using-an-array/148726/1 "2005-05-23T01:45:13Z")

</div>

Hi,

I was just wondering if it was possible to make a forward button that would get the next page in a list, or sequence.

I am using the javascript on the back button to go to previous pages, and was wondering if there was some way to define a sequence for the forward button so that I don’t have to code it on every page.

Both the Forward and back buttons are within an editable region in a template, the back button is fine because its the same on every page, but the forward button is very tedious when you have about 60+ pages.

Any help would be much appreciated.
