Not too difficult, just change the src tag of the iframe. Let's assume the below is your html:
<body>
<!-- Assuming 1.html is the first shown, you can
initialize it as the first src to be displayed -->
<iframe id="frame" src="1.html"></iframe>
<a href="#" id="prev">Previous</a> <a href="#" id="next">Next</a>
</body>
Then you could do it as explained below:
jQuery
var currentView = 1,
minView = 1,
maxView = 4;
var changeViewNext = function() {
if (currentView >= minView && currentView < maxView) {
currentView++;
$('#frame').prop('src', currentView + '.html');
}
}
var changeViewPrev = function() {
if (currentView <= maxView && currentView > minView) {
currentView--;
$('#frame').prop('src', currentView + '.html');
}
}
// Then some click events
$('#prev').click(function(e) {
e.preventDefault();
changeViewPrev();
});
$('#next').click(function(e) {
e.preventDefault();
changeViewNext();
})
Alternatively, just add the markup to your anchor tags to call these functions:
<a href="#" onClick="changeViewPrev()">Previous</a>
<a href="#" onClick="changeViewNext()">Next</a>
UPDATE
If you wanted to use buttons instead of anchor tags, leave the jQuery the same, and just change your anchor tags for buttons, as such
<button id="prev">Previous</button> <button id="next">Next</button>
UPDATE2: Tested code using javascript only, no jQuery
<body>
<!-- Assuming 1.html is the first shown, you can
initialize it as the first src to be displayed -->
<iframe id="frame" src="1.html"></iframe>
<button onClick="changeViewPrev()">Previous</button>
<button onClick="changeViewNext()">Next</button>
<script>
var currentView = 1,
minView = 1,
maxView = 4,
frame = document.getElementById('frame');
function changeViewNext() {
if (currentView >= minView && currentView < maxView) {
currentView++;
frame.src = currentView + '.html';
}
}
function changeViewPrev() {
if (currentView <= maxView && currentView > minView) {
currentView--;
frame.src = currentView + '.html';
}
}
</script>
</body>