4 the browser object, Methods, Result = addmetaitem ( target, content ) – Casio Naurtech CETerm Ver.5.5 Scripting Guide User Manual

Page 37: Result = navigate ( url ), Result = runscript ( script ), Method action

Advertising
background image

N

AURTECH

W

EB

B

ROWSER AND

T

ERMINAL

E

MULATION FOR

W

INDOWS

CE

AND

W

INDOWS

M

OBILE




CETerm Scripting Guide

Page 37



3.4

T

HE

B

ROWSER

O

BJECT

The Browser object gives access to a web browser session. The Browser
object is a property of the Session object; CETerm.Session(i).Browser.
This section documents the methods and properties of the Browser object.

Methods

The following methods are available

Method

Action

AddMetaItem

Add a CETerm <META> element to the current web page.

Navigate

Navigate to specified URL.

RunScript

Run a script in the web browser JavaScript engine.

result = AddMetaItem ( target, content )

Add a CETerm <META> tag element to the current web page. This is typically
used to add custom <META> elements which define key mappings or other
custom behaviors. See the Naurtech Web Browser Programming Guide for
documentation on custom <META> tags. Return 0 for success, non-zero for
failure. After adding META elements that change the values of information icons
you may need to use CETerm.PostIDA( “IDA_INFO_REFRESH”, 0 ) to apply the
changes.

result = Navigate ( URL )

Navigate the browser session to the specified URL. Return 0 for success, non-
zero for failure.

result = RunScript ( script )

Execute the specified script in the browser JavaScript engine. Return 0 for
success, non-zero for failure.

Advertising
This manual is related to the following products: