以下の構文、サンプルページのとおり、URL を指定して表示させる HTML を書いたのですが、当該 URL を表示後、当該 URL 側の挙動として自動的に別の URL にリダイレクトされてしまいます。(この例ですと、「https://www.jma.go.jp/bosai/map.html#5&contents=earthquake_map」を指定していますが、「https://www.jma.go.jp/bosai/map.html#10/32.75/131.616/&5&elem=int&contents=earthquake_map」にリダイレクトされてしまいます。(縮尺が変わってしまいます。)
このリダイレクトをやめて、最初に指定した「https://www.jma.go.jp/bosai/map.html#5&contents=earthquake_map」が表示されるようにできませんでしょうか?
どうぞよろしくお願い致します。
<構文>
<!doctype html>
<style type="text/css">
<!--
#center{
background-color: transparent;
margin-top:-525px;
margin-left:-30px;
}
-->
</style>
<html>
<body>
<div style="no-repeat 0% 0%">
</div>
<iframe sandbox="allow-scripts" width="1500" height="2000" src="https://www.jma.go.jp/bosai/map.html#5&contents=earthquake_map" scrolling="no" id="center"></iframe>
<script type="text/javascript">
setTimeout("location.reload(false)",15000);
</script>
</body>
</html>
History.replaceState()
によるURLの書き換えですね。map.html
に埋め込まれているJavaScriptで実行しているのだと思われます。(ズーム処理も、同じく埋め込まれたJSで実行していると思われます)