If all you need is to display different pages within the same iframe when various links are clicked, you don't need a complex script for that. Just learn how to access an iframe and update its URL dynamically. For example:
Code:
<iframe id="test" src="about:blank" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="width:400px; height:300px;"></iframe>
<a href="javascript:gotopage('http://google.com')">Google</a> | <a href="javascript:gotopage('http://www.yahoo.com')">Yahoo</a>
<script type="text/javascript">
function gotopage(url){
document.getElementById("test").src=url
}
</script>
Bookmarks