<html>
<body>
<script>
addEventListener('load', function() {
window.open("http://example.com/" + location.hash, "foo");
});
</script>
</body>
</html>