content element

Syntax

<content src="string" 
         type="string"
         charset="string" />

Description

The <content> element specifies the start page that the BlackBerry WebWorks app displays when it runs. The start page can contain the web address of a file that is located outside of the app archive. If you specify a page that is outside of the app archive, you must allow access to the address using the <access> element.

Parent elements

<widget>

Child elements

None

Occurrences

One

Attributes

You can use the following attributes in the <content> element:

Attribute

Description

src

The src attribute specifies the source HTML file in the app archive.

This attribute is required.

type

The type attribute specifies the MIME type of the file that is specified in the src attribute.

This attribute is optional.

charset

The charset attribute specifies the character set that is used by the file that is specified in the src attribute.

This attribute is optional.

Example: Specifying a start page

<content src="startpage.html" />

Last modified: 2014-03-10



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus