I basically need to somehow display to the user which page he is browsing to in the iframe. By displaying the URL source address of currently browsed URL of an Iframe. In my code the URL does not refresh when browsed to any other link within the Iframe.
<html><body>
<iframe id="MyIframe" name="MyIframe" src="https://hello.com"
style="height: 90%; width:100%; border: 0px; margin: 0 0 0 0;">
</iframe><br>
<script type="text/javascript" language="JavaScript">
document.write('<input type="text" style="width:100%; " ');
document.write(' value="' + document.getElementById('MyIframe').src+ '">');
</script>
</body></html>