My Code:
Expand|Select|Wrap|Line Numbers
- buttonNames = new Array("Next","Previous","Home");
- function displayButtons{
- for (i=0; i < buttonNames.length; i++)
- <input type="button" value= buttonNames[i]
- for (i in buttonNames)
- {
- window.location = new array("next.html","previous.html","home.html");
- onClick="window.location[i]";
- }>