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 自オブジェクト