===== Example - Remote ===== function OnStart() { lay = app.CreateLayout( "linear", "VCenter,FillXY" ); web = app.CreateWebView( 0.8, 0.8 ); web.SetOnProgress( web_OnProgess ); lay.AddChild( web ); app.AddLayout( lay ); app.ShowProgress("Loading..."); web.LoadUrl="http:///www.google.com"; } function web_OnProgess( progress ) { app.Debug( "progress = " + progress ); if( progress==100 ) app.HideProgress(); } ===== Example - Local ===== function OnStart() { lay = app.CreateLayout( "linear", "VCenter,FillXY" ); web = app.CreateWebView( 0.8, 0.8 ); web.SetBackColor( "#00000000" ); lay.AddChild( web ); app.AddLayout( lay ); web.LoadUrl="Sys/Html/Page.htm"; } ===== Example - Direct ===== function OnStart() { lay = app.CreateLayout( "linear", "VCenter,FillXY" ); web = app.CreateWebView( 0.8, 0.8 ); web.SetBackColor( "#00000000" ); lay.AddChild( web ); app.AddLayout( lay ); var html = ""; html += ""; html += "Hello World!
"; html += ""; html += ""; web.LoadHtml( html, "file:///Sys/" ); }