◀︎

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-tomorrow.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js"></script>
<style>
.ボックス{width:80%;
margin:30px auto;
padding:20px;
background:white;
border-radius:10px;
box-shadow:0 0 10px rgba(0, 0, 0, 0.1);}
h1{color:#123456;
font-size:1.4em;
margin-left:10px;}
.セクション{margin-bottom:40px;}
</style>
</head>
<body>
<div class="ボックス">
<h1>問題:トレースしてください</h1>
<div class="セクション">
<pre><code class="language-html">
<html lang="ja">
<meta charset="utf-8">
<script>
window.onload=function() {
if (!sessionStorage.getItem("次の表示"))
{sessionStorage.setItem("次の表示","true");
setTimeout(function()
{window.location.href="b.html";},5000);}};
</script>
<h1>a.html</h1>
<p>5秒後に <b>b.html</b> に進みます。</p>
</code></pre>
</div>
</div>

 

▼ Download ▼