WebViewer
Definition
Component for viewing Web pages.
The HomeUrl
can be specified in the Designer or in the Blocks Editor. The view can be set to follow links when they are tapped, and users can fill in Web forms.
Warning: This is not a full browser. For example, pressing the phone’s hardware Back key will exit the app, rather than move back in the browser history.
Properties
- CurrentPageTitle
- Returns the title of the page currently being viewed
- CurrentUrl
- Returns the URL currently being viewed. This could be different from the
HomeUrl
if new pages were visited by following links. - FollowLinks
- Determines whether to follow links when they are tapped in the
WebViewer
. If you follow links, you can useGoBack
andGoForward
to navigate the browser history. - Height
- Specifies the
WebViewer
’s vertical height, measured in pixels. - HeightPercent
- Specifies the
WebViewer
’s vertical height as a percentage of theScreen
’sHeight
. - HomeUrl
- Specifies the URL of the page the
WebViewer
should initially open to. Setting this will load the page. - IgnoreSslErrors
- Determine whether or not to ignore SSL errors. Set to
true
to ignore errors. Use this to accept self signed certificates from websites. - PromptforPermission
- Determine if the user should be prompted for permission to use the geolocation API while in the
WebViewer
. Iftrue
, prompt the user of theWebViewer
to give permission to access the geolocation API. Iffalse
, assume permission is granted. - UsesLocation
- Specifies whether or not this
WebViewer
can access the JavaScript geolocation API. - Visible
- Specifies whether the
WebViewer
should be visible on the screen. Value istrue
if theWebViewer
is showing andfalse
if hidden. - WebViewString
- Gets the
WebView
’s String, which is viewable through Javascript in theWebView
as thewindow.AppInventor
object. - Width
- Specifies the horizontal width of the
WebViewer
, measured in pixels. - WidthPercent
- Specifies the horizontal width of the
WebViewer
as a percentage of theScreen
’sWidth
.