CenterWindow Method



 
The CenterWindow method centers the dialog on the screen.


Syntax

    SKHtmlDialog.CenterWindow()
Return Value
    None.
Remarks
    None.
Examples
    The following example creates, centers and shows a dialog.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    mydialog = SiteKiosk.SiteKioskUI.CreateHTMLDialog();
    mydialog.Title = true;
    mydialog.URL = "http://www.myaddress.com";
    mydialog.CenterWindow();
    mydialog.ShowDialog();
    </SCRIPT>

Applies to
    SiteKiosk v5.5 (and later versions).

Back to top