Hourglass Meta Tag

PocketBrowser 3.x API

The Hourglass Meta Tag is an action tag used to control the display and position of the hourglass icon, which appears to indicate that a page is loading.

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

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

Name Possible Values Description
Default Value
Visibility:[Value] Visible or Hidden Shows or hides the hourglass Hidden
Left:[Value] Horizontal position, in pixels Sets the horizontal position of the hourglass Center of the screen
Top:[Value] Vertical position, in pixels Sets the vertical position of the hourglass Center of the screen
Copy parameters template to clipboard: Copy META Tag template to clipboard META Tags Copy Javascript template to clipboard Javascript

The following example sets the Hourglass position to (50, 50).

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

The following example shows and hides the Hourglass.

var Generic = new ActiveXObject("PocketBrowser.Generic");

function showHourglass()
Generic.InvokeMetaFunction('hourglass', 'visibility:visible');

function hideHourglass()
Generic.InvokeMetaFunction('hourglass', 'visibility:hidden');
Copy example to clipboard Copy example to clipboard
When navigating between pages, the hourglass will be shown and hidden automatically and will override the current visibility settings. The position the hourglass is shown at during page loads will be as set using the Left / Top properties. Because the Hourglass is shown and hidden automatically during page loads it is not recommended to use static meta tags to show or hide it, in preference use InvokeMetaTag from JavaScript.

The hourglass is not compatible with scrolling the browser window. The spinning cursor will move with the HTML page.

Supported Platforms Windows CE, Windows Mobile
Persistence The hourglass position persists across page-loads, and is hidden once the new page is loaded.
Min. Requirements None