|
呼び出し時に指定した位置とサイズで新しいウインドウを開きます。
呼び出し形式
WindowOpen(psAddress, nLeft, nTop, nWidth, nHeight)
パラメータ詳細
psAddress <- ウインドウ内に表示したいドキュメントファイル名
nLeft <- ウインドウの位置(左)
nTop <- ウインドウの位置(上)
nWidth <- ウインドウのサイズ(幅)
nHeight <- ウインドウのサイズ(高さ)
呼び出し例
1. ヘッダー部にJavaScriptの定義を追加します。
<head>
<meta http-equiv="Content-Script-Type" content="text/javascript">
<script src="./windowopen.js"></script>
</head>
2. ウインドウを開きたい所に関数の呼び出しを定義します。
<span id="sample" class="popupstyle" onClick="WindowOpen('test.html', 100, 100, 200, 200)">サンプル</span>
|
|