# Open links sequentially from a list

**URL:** https://forum.kirupa.com/t/open-links-sequentially-from-a-list/237851
**Category:** programming
**Created:** [September 4, 2007, 5:38pm UTC](https://forum.kirupa.com/t/open-links-sequentially-from-a-list/237851 "2007-09-04T17:38:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jusko](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@jusko](https://forum.kirupa.com/u/jusko)
#### Post date: [September 4, 2007, 5:38pm UTC](https://forum.kirupa.com/t/open-links-sequentially-from-a-list/237851/1 "2007-09-04T17:38:15Z")

</div>

Hey everyone!!

I have what i think it is a simple question to answer.  
I have a button to open a new link in a new browser window. And what i need is that after i press the button, the link opened would come from a list of html. I have, for example, 10 html pages “page1.html”, “page2.html”, and so on.  
I dont want that the html opened would be from a random choice, but i want to be sequential. Example: when someone press the button, it will open page1.html, then someone else press the button again (somewhere else in the world!) the page opened will be page2.html…  
I hope that i’m being clear in my line of thought. Is this possible?

thanks people, and cheers!!!
