■新しくウインドウを開き、フォーカスを移動します。

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>ウインドウを前面、背面に移動したい</title>
<script type="text/JavaScript">
<!--
function win_open1(){
win1 = window.open("128p_2.htm","NewWindow1");
}
function fc_chg1(){
win1.window.focus();
}
// -->
</script>
</head>
<body bgcolor="#eeffff">
<p>■新しくウインドウを開き、フォーカスを移動します。</p>
<form name="form1">
<p><input type="button" value="新規ウインドウの表示" onclick="win_open1()"></p>
<p><input type="button" value="新規ウインドウを前面に移動する" onclick="fc_chg1()"></p>
</form>

</body>
</html>


★解説★