JSFiddle - React, Tailwind, and code Playground

HTML

<script>
function loaded () {
  alert ("added to iframe tag");
	$("#test").load(function(){
  	alert("added after load finished");
  });
};
</script>
<iframe onload="loaded()" id="test" src="https://en.wikipedia.org/wiki/HTML_element#Frames"></iframe>