META tags are included at the top of a web page within the <head> and </head> tags. They are evaluated in the order they appear in the web page (from top to bottom). Velocity ignores tags it does not recognize.
Each META tag has the following format:
The following META tags are supported by the Velocity Client.
The OnKey and OnKey0x META tags describe an action that will occur if a particular key is pressed. The key values evaluated are the same key values used by the Velocity Console. The OnKey0x format requires a unicode value and the OnKey format requires a decimal format. The key value is case sensitive.
OnKey0x32 respond when the user presses 2.
OnKey97 respond to both the upper and lowercase A.
The OnAllKeys tag will perform the specified action each time any key is pressed. The action type can include one argument, which is the string representing the decimal value of the key.
An example of this tag in use is provided below.
<Title>META Tag Onloaded Example</Title>
<p>This is a sample test page.</p>
In this example, the function helloWorld() is called to display an alert on the device when the screen is fully loaded.
This section includes tags that enable or disable the scanner.
If the action attribute is set to
Scanner and the content is
Enable , the scanner will be enabled when the page is first loaded. If the content is
Disable , the scanner will be disabled when the page is first loaded.
<meta http-equiv="Scanner" content="Disable">
The scanner action types supported by the Velocity Client include:
When you call a script from a meta tag, specify the action in the http-equiv attribute and then provide the name of the script in the content attribute. For example:
<meta http-equiv="OnStartup" content="wls:WebAuto(1000,'5','1')">
<meta http-equiv="OnStartup" content="wls:WebAuto">
Just a reminder: when you pass numbers in as parameters, they do not need quotation marks. When you pass text or strings in as parameters, you must use quotation marks.
For more information about using scripts, see Using Advanced Configuration.