10秒後に別のページに移動する

説明

10秒ごとに別のページに移動させるにはhttp-equivにrefreshを指定します。contentに移動するまでの秒数とURLを指定します。秒数とURLは;(セミコロン)で区切ります。

サンプルコード [実行]

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=shift_jis">
<meta http-equiv="refresh" content="10;URL=http://www.openspc2.org/">
<title>Sample</title>
</head>
<body>
<h1>Sample</h1>
<p>
10秒後にhttp://www.openspc2.org/のページに移動します。
</p>
</body>
</html>