I have setup an iframe on my page and would like it to update when clicking on a next button.
I have an array of urls which I want to be called when the next button is clicked.
The next button should load the next url in the iframe.
I am stuck at how do i always call the next index position each time i click the next button?