rendered paste body<!DOCTYPE html>
<script>
function navigateFrames() {
setTimeout(function() {
document.getElementById('frame1').src = 'data:text/html,frame1navigated';
document.getElementById('frame2').src = 'data:text/html,frame2navigated';
}, 0);
}
</script>
<body onload="">
<button onclick="navigateFrames()">Navigate Frames</button>
<button onclick="history.go(-2)">Go Back</button>
<iframe id='frame1' src='http://www.webkit.org'></iframe>
<iframe id='frame2' src='data:text/html,frame2'></iframe>
</body>