summaryrefslogtreecommitdiff
path: root/dom/browser-element/mochitest/file_browserElement_OpenWindowDifferentOrigin.html
blob: dc08f341c4cd517f010dafb1af132f72bd1c01b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<html>
<body>

<div id='name'></div>

<script>
if (location.search == "?1") {
  open("http://example.com/tests/dom/browser-element/mochitest/file_browserElement_OpenWindowDifferentOrigin.html?2");
}
else if (location.search == "?2") {
  alert("finish");
}

document.getElementById('name').innerHTML = location.search;
</script>

</body>
</html>