tizen beta release
[framework/web/webkit-efl.git] / LayoutTests / fast / history / redirect-via-iframe.html
1 <head>
2 </head>
3 <body onload="onload()">
4 </body>
5 <script>
6   if (window.layoutTestController) {
7       layoutTestController.clearBackForwardList();
8       layoutTestController.waitUntilDone();
9   }
10
11   function onload() {
12       // Navigate via an iframe redirect (to change the referrer, though we're
13       // not interested in that in this test) should still generate a history
14       // entry, since we're doing it after onload.
15       window.setTimeout(navigate, 0);
16   }
17   
18   function navigate()
19   {
20       var redirectIframe = document.createElement('iframe');
21       document.body.appendChild(redirectIframe);
22       redirectIframe.src = 'resources/iframe-redirect.html#2';
23   }
24
25 </script>
26