go to next page in iframes using button command (next & back)
hi.. i zul.. I have problem with my coding.. i want to go to the next page (i have 3 page : 5x4(1).html, 5x4(2).html and 5x4(3).html) in i frame.. the main iframes (Flyout1.html) is 5x4(1).html. when i click next button, it will go to the next page : 5x4(2).html in the same iframes(Flyout1.html). and when we click next button, its go to next page 5x4(3).html in a same iframe. I tried to do some coding to do like that but it not working. Since i not a very good in programming, i so difficult to me. I hope anybody can help me solve this problem. This is my error code that i write.
switch(currPage)
{
case 1:
document.getElementById('Iframe1').src='5x4(1).html';
case 2:
document.getElementById('Iframe1').src='5x4(2).html';
case 3:
document.getElementById('Iframe1').src='5x4(3).html';
break;
default:
}
}
function Back()
{
currPage -= 1;
if (currPage<1)
{
currPage= 1 ;
}
switch(currPage)
{
case 1:
document.getElementById('Iframe1').src='5x4(1).html';
break;
case 2:
document.getElementById('Iframe1').src='5x4(2).html';
break;
case 3:
document.getElementById('Iframe1').src='5x4(3).html';
break;
default:
Bookmarks