アプリ関連ニュース
- 2020年3月23日
- 技術情報
Refreshing Screen
Today, I would like to show you how to refresh the screen at some interval time using various ways.
Using setTimeout
<!DOCTYPE html>
<html>
<head>
<title>Page Reload after 10 seconds</title>
</head>
<body>
<h2>Hello</h2>
</body>
<script type="text/javascript">
setTimeout(function(){
location.reload();
},10000);
</script>
</html>
Using setInterval
<!DOCTYPE html>
<html>
<head>
<title>Page Reload after 10 seconds</title>
</head>
<body>
<h2>Hello</h2>
</body>
<script type="text/javascript">
function autoRefreshPage()
{
window.location = window.location.href;
}
setInterval('autoRefreshPage()', 10000);
</script>
</html>
Using Meta
<!DOCTYPE html>
<html>
<head>
<title>Page Reload after 10 seconds</title>
<meta http-equiv="refresh" content="10" />
</head>
<body>
<h2>Hello</h2>
</body>
</html>
By Yuuma
yuuma at 2020年03月23日 11:00:33
- 2020年3月20日
- 技術情報
Windows環境でbasic認証の設定をおこなう方法(その1)
nishida at 2020年03月20日 10:00:31
macOSのインストールイメージファイルの作成
tanaka at 2020年03月18日 10:00:36
- 2020年3月13日
- 技術情報
[PHP-JavaScript] JSONでの連携処理
nishida at 2020年03月13日 10:00:42
- 2020年3月11日
- Android
Raspberry Pi 4上でAndroidの実行
tanaka at 2020年03月11日 10:00:58