summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/browsers/the-window-object/apis-for-creating-and-navigating-browsing-contexts-by-name/non_automated/002-1.html
blob: 0e210f351b2049f256caaae4cc177dd1836f7a94 (plain)
1
2
3
4
5
6
7
8
<!doctype html>
<p>Now open a new tab and navigate to <a></a></p>
<script>
href = window.location.href.replace("http://", "http://www.").replace("002-1.html", "002-2.html");
var a = document.getElementsByTagName("a")[0];
a.href = href;
a.textContent = href;
</script>