1christine
12-23-2003, 02:18 PM
Need to create array that stores text. Then need function to call choice of the previous text entry or next text entry. This is my code:
function link(){
var link = [];
for(i=0; i<link.length; i++)
parent.main.location.href=link[i];
}
This next part works, except for the last 2 buttons, as is. Once I have a working array I will change the onClick commands to access the array.
<INPUT TYPE="text" NAME="newUrl">
<INPUT TYPE="button" NAME="goto" VALUE=" Go To "
onClick="parent.main.location.href=document.controls.newURL.value">
<INPUT TYPE="button" NAME="next" VALUE=" Next URL "
onClick="parent.main.history.forward();">
<INPUT TYPE="button" NAME="previous" VALUE=" Previous URL "
onClick="parent.main.history.back();">
Thanks.
function link(){
var link = [];
for(i=0; i<link.length; i++)
parent.main.location.href=link[i];
}
This next part works, except for the last 2 buttons, as is. Once I have a working array I will change the onClick commands to access the array.
<INPUT TYPE="text" NAME="newUrl">
<INPUT TYPE="button" NAME="goto" VALUE=" Go To "
onClick="parent.main.location.href=document.controls.newURL.value">
<INPUT TYPE="button" NAME="next" VALUE=" Next URL "
onClick="parent.main.history.forward();">
<INPUT TYPE="button" NAME="previous" VALUE=" Previous URL "
onClick="parent.main.history.back();">
Thanks.