SetFocus Method



 
The SetFocus method sets the focus to a SiteKiosk window.


Syntax

    SiteKioskWindow.SetFocus()
Return Value
    None.
Remarks
    None.
Examples
    The following example calls a method of the SiteKioskWindow object that will set the focus back to the window if it loses it.

    <html>
    <head>
    <SCRIPT TYPE="text/javascript">
    function focusAgain()
    {
       window.external.InitScriptInterface();
       SiteKioskWindow.SetFocus();
    }
    </SCRIPT>
    </head>
    <body onblur="focusAgain()">
    </body>
    </html>
    

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

Back to top