All site is loaded when I click to load only Iframe.

All site is loaded when I click to load only Iframe.

Hi.
In my fallow code, when I try to load the iframe all site is load. 

  1. </head>
  2. <body onLoad="loadFrameInit()">
  3. <script>
  4. function loadFrameInit(){ 
  5.   $("#IframeMaster").attr('src','Modelos/Mcs/mcs.html').load(function(){
  6.    alert("1");
  7.  })
  8. }
  9. </script>
  10. <div id="MenuModelos">
  11.     <img src="img/menuBTN.png" id="ImgMenuModelos" title="Selecione outros modelos" onClick="AbreMenuModel()"></img>
  12.     <div id="AreaModels">
  13.         <img src="img/buttonBody.png" class="ponteiro" onClick="AbreMenuModel('Modelos/SuperRacer/superRacer.html')"></img>
  14.       </div>
  15. </div>
  16. function AbreMenuModel(model){
  17. if($("#MenuModelos").css('top') <= "-50px"){
  18.    $("#MenuModelos").animate({"top": "+=50"}, "slow");
  19.    testaSeAbriu = "true";
  20. }else{
  21. $("#MenuModelos").animate({"top": "-=50"}, "slow");
  22. $("#IframeMaster").attr('src',model).load(function(){
  23.         })
  24. }
It is strange, because When I load an Iframe only this need loaded and not all site. The alert in  loadFrameInit(0 is showed in all time when I click in  AreaModels in one image and send the commando  onClick="AbreMenuModel('Modelos/SuperRacer/superRacer.html').

Am I correct?

Thanks

EDIT: the problem apparently is inside in    loadFrameInit(). I have a setInterval that if is looping, happens this error. If the clearinterval is call, and finish the function, only iframe is loaded.