ウィンドウに表示されているページをリフレッシュ(更新)する

書式

windowObj.refresh()

windowObj : ウィンドウオブジェクト

説明

ウィンドウに表示されているページをリフレッシュ(更新)するにはrefresh()を使います。

サンプルコード [実行]

<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>Sample</title>
<link rel="stylesheet" href="default.css" type="text/css" media="all">
<script type="text/javascript" src="prototype.js"></script>
<script type="text/javascript" src="effects.js"></script>
<script type="text/javascript" src="window.js"></script>
<script type="text/javascript"><!--
var win;
window.onload = function(){
win = new Window("win01", {
url:"http://www.openspc2.org/",
title: "Sample",
className: "dialog",
top:50, left:120,
width:320, height:240,
zIndex: 100,
resizable: true,
draggable:true
});
win.setDestroyOnClose();
win.show();
}
function pageRefresh(){
win.refresh();
}
// --></script>
</head>
<body>
<h1>ウィンドウをリフレッシュする</h1>
<form>
<input type="button" value="ページ内容を更新" onClick="pageRefresh()">
</form>
</body>
</html>