JSFiddle - React, Tailwind, and code Playground
HTML
<script type="text/javascript">
function hideProgress(){
document.getElementById('loader').style.display = 'none';
}
</script>
<a href="http://www.perdu.com" target="iframe" onClick="document.getElementById('loader').style.display = 'block';">TEST LINK</a><br>
<h1 id="loader" style="position: absolute;top: 375px; font-size: 26px; background-color: #FF0000">PAGE IS LOADING...</h1>
<iframe name="iframe" id="iframe" allowTransparency="true" onload="hideProgress()" src="http://www.test.com" noresize width="700" height="1500" > </iframe>