blob: a7a3134320df17642bec361c74675c06eec3612c [file] [log] [blame]
<html>
<head>
<script src="resources/document-location.js"></script>
<script type="text/javascript">
testRunner.dumpBackForwardList();
testRunner.dumpAsText();
var myFrame;
function myCallbackFunction() {
myFrame.src = '#';
}
</script>
</head>
<body>
<p>This test verifies that setting the iframe.src through javascript to # does not add a history item. If the test passes you'll see only one history item.</p>
<script type="text/javascript">
myFrame = document.createElement("iframe");
myFrame.src = "javascript:document.write('<script type=text/javascript>window.parent.myCallbackFunction();<\/script>');";
document.body.appendChild(myFrame);
</script>
</body>
</html>