In this case my iFrame has an id of “myIframe” and my button is called “btnLoad” you can of course name them anything you wish.
<script> $("#btnLoad").click(function () { $("#myIframe").attr("src", "iFrameContent.html"); }); </script>
My favorite JavaScript framework
In this case my iFrame has an id of “myIframe” and my button is called “btnLoad” you can of course name them anything you wish.
<script> $("#btnLoad").click(function () { $("#myIframe").attr("src", "iFrameContent.html"); }); </script>
In my case my iFrame has an id of “myIframe” but you can of course use any id you wish.
<script> $("#myIframe").load(function() { $(this).height($(this).contents().find("body").height()); }); </script>
because anything is possible with Charisma
Maths, programming and Sad Keanu
Web, Family, Music and Soccer
My experience in web development
Warning: This blog contains Old Man Stories. Reader discretion advised.