0
document.location.hash = ""はURLに#を設定します。しかし、これをDOMで最初に実行すると、Firefox(少なくともFirefox 5.0.1)では動作しません。何か案は?DOMの最初のものとしてdocument.location.hash = ""を実行してもURLは消去されません
Firefoxと別のブラウザでhttp://www.sebastianrazola.com/test.html#thisshouldberemovedを訪問してみてください。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Hash test</title>
<script type="text/javascript">
document.location.hash="";
</script>
</head>
<body>
<p>The hash won't be set to <b>#</b> in Firefox. (At least in Firefox 5.0.1)</p>
</body>
</html>
ありがとうございました。うん、私はバグを提出した。 – Sebastian