load iFrame content using jQuery

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>
Advertisements