<!DOCTYPE html>
<html>
<body>
<iframe id="myFrame" src="../default.html"></iframe>
<p>Click the button to change the value of the src attribute in the iframe.</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction() {
document.getElementById("myFrame").src = "http://www.cnn.com";
}
</script>
</body>
</html>