Difference between revisions of "Iframe change"
Jump to navigation
Jump to search
m (Fix previous URL change) |
|||
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
<script> | <script> | ||
function change() { | function change() { | ||
− | document.getElementById("f").src = "https://www. | + | document.getElementById("f").src = "https://www.npr.org/"; |
} | } | ||
</script> | </script> | ||
Line 11: | Line 11: | ||
<body> | <body> | ||
<button onclick="change();"> Change </button> | <button onclick="change();"> Change </button> | ||
− | <iframe id="f" src="https://www. | + | <iframe id="f" src="https://www.levelaccess.com/"> |
</iframe> | </iframe> | ||
− | <iframe id="g" style="height:224px;" src=" | + | <iframe id="g" style="height:224px;" src="https://www.bbc.com"> |
</iframe> | </iframe> | ||
</body> | </body> | ||
</html> | </html> |
Latest revision as of 17:40, 27 April 2021