AddressBar Meta Tag

PocketBrowser 3.x API

The AddressBar Meta Tag is an action tag used to set the parameters of the address bar, which allows navigation to a page for display. The AddressBar displays a history of visited URLs for selection, or will navigate to a typed-in URL when pressing the "Go" button.

AddressBar (META Tag) Syntax
<META HTTP-Equiv="AddressBar" content="[parameter]">

ParametersW Toggle Parameters

Items listed in this section indicate parameters, or attributes which can be set.

Name Possible Values Description
Default Value
Left:[Value] Positive number, representing pixels Sets the X position of the address bar. 0
Top:[Value] Positive number, representing pixels Sets the Y position of the address bar. 0
Width:[Value] Positive number, representing pixels Sets the width of the address bar. Most of the screen width
Visibility:[Value] Visible, Hidden Sets the visibility of the address bar Hidden
Copy parameters template to clipboard: Copy META Tag template to clipboard META Tags Copy Javascript template to clipboard Javascript

Examples Toggle Examples

The following example shows the address bar, sets the left and top coordinates to 50, and the width to 100.

<META HTTP-Equiv="AddressBar" Content="visibility:visible">
<META HTTP-Equiv="AddressBar" Content="left:50">
<META HTTP-Equiv="AddressBar" Content="top:50">
<META HTTP-Equiv="AddressBar" Content="width:100">
Copy example to clipboard Copy example to clipboard

The following example shows the address bar, sets the left and top coordinates to 0, and the width to 50.

<META HTTP-Equiv="AddressBar" Content="left:0; top:0; width:50">
Copy example to clipboard Copy example to clipboard

Remarks Toggle Remarks

Default Positions
By default this control will be placed a the top of the screen. On Windows Mobile if the 'FullScreen' configuration setting is disabled the control will need to be moved, otherwise it will appear beneath the task bar.

Switching to Other Applications
All controls are designed to be shown on top of PocketBrowser. If you require to switch to an application other than PocketBrowser you should minimize PB to ensure the buttons do not remain shown.

Screen Orientation
When the screen orientation changes, either using the ScreenOrientation tag or by rotating a device with hardware support, the command areas will automatically move and resize to fit the new layout. However the buttons themselves are not moved and in some cases this may result in them being off the screen or not in the expected position. If so they must be moved manually by detecting the ScreenOrientationEvent.


Info Toggle Additional Information

Supported Platforms Windows CE, Windows Mobile
Persistence This tag is persistent.
Min. Requirements None.