Share via


FRAME XHTML Element

Send Feedback

The FRAME element specifies an individual frame within a FRAMESET. This is a block element and does not require a closing tag.

Note   Windows Mobile-based Smartphones do not support frames.

Using this Element

There are some common properties and collections that apply to all the elements of the document object model, see Common Properties for All DOM Elements in Internet Explorer Mobile.

This element can be used within a web page with attributes.

This element can be used within scripts where it will have properties, events and methods.

Attributes

Attribute Value PPC SP Description
CLASS   Yes Yes Associates the element with a CSS style.
Note   Supported only for devices running Windows Mobile 2003 software or later.
ID   Yes Yes Uniquely identifies the element within a document.
Note   Supported only for devices running Windows Mobile 2003 software or later.
MARGINHEIGHT 1...# Yes Yes Specifies the top and bottom margins for the contents of the frame. The default value for MARGINHEIGHT is 6.
MARGINWIDTH 1...# Yes Yes Specifies the left and right margins for the contents of the frame. The default value for MARGINWIDTH is 6.
NAME String Yes Yes Specifies the name of the frame
SCROLLING   Yes Yes Specifies whether or not the user can scroll the frame.
  auto Yes Yes The browser determines if scrollbars are necessary. This is the default setting.
  yes Yes Yes The frame can be scrolled
  no Yes Yes The frame cannot scroll.
SRC URL Yes Yes Specifies the URL to be loaded in the FRAME
STYLE   Yes Yes Provides the definition of the CSS styles used for this element.
Note   Supported only for devices running Windows Mobile 2003 software or later.

Scripting Properties

Property Type Access
document object Read Only
marginHeight variant Read Only
marginWidth variant Read Only
name string Read Only
noResize boolean Read Only
scrolling string Read Only
src string Read Only

Scripting Events

This element has no associated events.

Scripting Methods

This property has no associated methods.

Requirements

Pocket PC: Windows Mobile 5.0 and later
Smartphone: Windows Mobile 5.0 and later
OS Versions: Windows CE 5.01 and later

See Also

XHTML Elements

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.