Share via


IHTMLFramesCollection2 interface

This interface is a zero-based collection of all frame elements if the document contains the frameSet element.

Members

The IHTMLFramesCollection2 interface inherits from the IDispatch interface. IHTMLFramesCollection2 also has these types of members:

  • Methods
  • Properties

Methods

The IHTMLFramesCollection2 interface has these methods.

Method Description
item

Retrieves a frame or iframe object from the collection.

 

Properties

The IHTMLFramesCollection2 interface has these properties.

Property Description

length

Sets or retrieves the number of objects in a collection.

 

Remarks

If the document contains the body element, this is a collection of all iframe elements in the document. In either case, the order of frames is determined by the HTML source.

If duplicate names are found, a collection of those named items is returned. Collections of duplicate names must be referenced subsequently by ordinal position.

This is a collection of frame tags.

This interface may also be referred to in code as IOmFramesCollection2.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IDispatch