Constructor
new SubWindow(nameopt)
Parameters:
-
String <optional> "HJN_subwindow"name
サブウィンドウの名前(ウィンドウをユニークに指定する名前)
Example
// TopHogeBottom と表示するサブウィンドウを表示し、閉じる<br>
var sub = new SubWindow("SUB_NAME");
sub.openHtml("hoge").appendHtml("Bottom").prependHtml("Top");
sub.close();
Methods
(static) SubWindow.createSubWindow(iHtmlopt, elementopt, idopt, wopt, hopt, styleopt)
サブウィンドウを表示する(HTML指定)
Element.createDialog と同一引数
Element.createDialog と同一引数
Parameters:
-
String <optional> "no message"iHtml
サブウィンドウのbodyに設定する文字列
-
DOM <optional> windowelement
サブウィンドウの位置とサイズを指定する際の基準となるウィンドウ
-
String <optional> "HJN_subwindow"id
サブウィンドウのid名、同一名称のダイアログを閉じて作成する
-
Number <optional> 40w
ウィンドウに対するサブウィンドウの幅の比率%
-
Number <optional> 40h
ウィンドウに対するサブウィンドウの高さの比率%
-
Object <optional> {bgColor: "rgba(255, 255, 255, 0.8)"}style
ダイアログ背景のCSSスタイル
(static) SubWindow#append(htmlopt) → {Object}
サブウィンドウのHTML body の末尾にHTMLを追記する
Parameters:
-
String <optional> ""html
追記するHTML文字列
Returns:
-
Object
this 自オブジェクト
(static) SubWindow#close()
サブウィンドウを閉じる
(static) SubWindow#openHtml(bodyopt, [opt="width=600, height=450 ,menubar=no, toolbar=no, location=no, status=yes, resizable=yes, scrollbars=yes"]) → {Object}
サブウィンドウを表示する(HTML指定)
Parameters:
-
String <optional> ""body
サブウィンドウに表示するHTML
-
String[opt="width=600, height=450 ,menubar=no, toolbar=no, location=no, status=yes, resizable=yes, scrollbars=yes"]
サブウィンドウ生成時に指定するオプション
Returns:
-
Object
this 自オブジェクト
(static) SubWindow#openUri(uriopt, [opt="width=600, height=450 ,menubar=no, toolbar=no, location=no, status=yes, resizable=yes, scrollbars=yes"]) → {Object}
サブウィンドウを表示する(URI指定)
Parameters:
-
String <optional> "about:blank"uri
サブウィンドウに表示するURI
-
String[opt="width=600, height=450 ,menubar=no, toolbar=no, location=no, status=yes, resizable=yes, scrollbars=yes"]
サブウィンドウ生成時に指定するオプション
Returns:
-
Object
Window サブウィンドウ
(static) SubWindow#prepend(htmlopt) → {Object}
サブウィンドウのHTML body の先頭にHTMLを追記する
Parameters:
-
String <optional> ""html
追記するHTML文字列
Returns:
-
Object
this 自オブジェクト