Parent and window.frame functions to allow cross-DOM selecting. To test if this works the code needs to be uploaded to a live server. Test will not work local.
HTML
<script type="text/javascript">
/* ------------------- Remove active1 class interframe function ------------------- */
window.frames['#iframe1'].proFunction()
function proFunction(){
$('#test1000').removeClass('active1');
$('#test3000').addClass('active1');
}
function resumeFunction(){
$('#test1000').removeClass('active1');
$('#test2000').addClass('active1');
}
/* ------------------- End ------------------- */
</script>
<!-- Navbar -->
<div class="navdown hidden">
<ul id="top-menu" style="margin:0 0 0 0">
<li class="active1" id="test1000">
<a data-height="100%" data-src="test_page_1.html" data-width="100%" id="test1"><i class="lnr lnr-file-empty"><small style="font-size: 65%"> Page 1</small></i></a>
</li>
<li id="test2000">
<a data-height="100%" data-src="test_page_2.html" data-width="100%" id="test2"><i class="lnr lnr-file-empty "><small style="font-size: 65%"> Page 2</small></i></a>
</li>
<li id="test3000">
<a data-height="100%" data-src="test_page_3.html" data-width="100%" id="test3"><i class="lnr lnr-file-empty"><small style="font-size: 65%"> Page 3<small></i></a>
</li>
</ul>
</div>
<!-- iFrame -->
<div id="main" >
<iframe frameborder="0" height="100%" id="iframe1" name="iframe1" scrolling="yes" src="test_page_1.html"
style="display:block;position:absolute;" width="100%"></iframe>
<!-- Scripts -->
JS
$("#link2").click(function(){
parent.proFunction();
});
$("#link3").click(function(){
parent.proFunction();
});
$('.navdown ul li').on('click', function(){
$('ul li.active1').removeClass('active1');
$(this).addClass('active1');
});
$("#test1").on('click', function() {
var src = $(this).data('src'),
width = $(this).data('width'),
height = $(this).data('height');
$('#iframe1').css({
width: width,
height: height
}).attr('src', src);
});
$("#test2").on('click', function() {
var src = $(this).data('src'),
width = $(this).data('width'),
height = $(this).data('height');
$('#iframe1').css({
width: width,
height: height
}).attr('src', src);
});
$("#test3").on('click', function() {
var src = $(this).data('src'),
width = $(this).data('width'),
height = $(this).data('height');
$('#iframe1').css({
width: width,
height: height
}).attr('src', src);
});
Test Page 1
<a href="test_page_2.html" id="link2">Go to test page 2</a>
<a href="test_page_3.html" id="link3">Go to test page 3</a>