Page History
Webアプリケーション - Closeメソッド
| Panel | ||
|---|---|---|
| ||
ブラウザのウィンドウまたはタブを閉じる |
Webアプリケーション Close the browser window or tab
Member of Web Application (PRIM_WEB.Application) のメンバ
詳細
Close メソッドは、ブラウザウィンドウおよび/またはアプリケーションを実行するタブを閉じます。メソッドは、ブラウザウィンドウやアプリケーションを実行するタブを閉じます。
例
この例では、ボタンをクリックするとページが閉じます。CloseQuery のイベントは、確認を求めるために発生します。
Begin_Com Role(*EXTENDS #PRIM_WEB)
Define_Com Class(#PRIM_PHBN) Name(#Close) Caption('Close') Displayposition(1) Left(16) Parent(#COM_OWNER) Tabposition(1) Top(14)
Evtroutine Handling(#Close.Click)
#sys_web.Close
Endroutine
Evtroutine Handling(#sys_web.CloseQuery) Querystring(#QueryString)
#QueryString := "Closing the page will end the LANSA session"
Endroutine
End_Com
関連項目
参照
すべてのコンポーネント クラス
テクニカル リファレンスAll Component Classes
Technical Reference