windowObj = Windows.getFocusedWindow()
windowObj : ウィンドウオブジェクト
win02 = new Window("win02", {
title: "ウィンドウ02", className: "dialog", top:150, left:180, zIndex: 101,
width:320, height:240, resizable: true, draggable:true });
win02.setDestroyOnClose();
win02.show();
}
function checkFrontWindow(){
var winObj = Windows.getFocusedWindow();
$("result").innerHTML = winObj.getId();
}
// --></script>
</head>
<body>
<h1>最前面のウィンドウIDを表示する</h1>
<form>
<input type="button" value="表示" onClick="checkFrontWindow()">
</form>
<div id="result"></div>
</body>
</html>