Replace IFrame with DIV! example

sont be afraid - say no to IFrame! <html >
<head >
<script src="jquery/jquery-1.7.1.js" type="text/javascript"></script>
<script type="text/javascript">
   function GetDivInnerHtml()        
   {         
         $.get("/Page2.aspx",function(data){   //OR www.google.com
              $( "#divMain" ).html(data);
         });        
   }
</script>
</head>
<body onload="GetDivInnerHtml()">
      <div id="divMain"> </div>
</body>
</html>

Comments

Popular posts from this blog

c# Service Play Sound with NAudio example by Moshe

JS/JQ simulate Enter event

SOLVED The item could not be indexed successfully because the item failed in the indexing subsystem