函数参考


_IEIsFrameSet

检查指定窗口是否含有一个框架集(FrameSet).

#include <IE.au3>
_IEIsFrameSet ( ByRef $o_object )

参数

$o_object InternetExplorer.Application,窗口或者框架(frame)对象的对象变量

返回值

成功: 返回 1如果对象包含框架集(FrameSet)
失败: 返回 0 并且是指@ERROR
@Error: 0 ($_IEStatus_Success) = 无错误
3 ($_IEStatus_InvalidDataType) = 无效数据类型
@Extended: 包含无效参数数量

注意/说明

_IEFrameGetCollection不能说明网页内的框架(frames)是一个框架集(FrameSet)的一部分还是浮动框架集(iFrame).如果在这个网页存在框架集(FrameSet)并且这个函数(_IEIsFrameSet)返回false,那么这里的框架集(FrameSet)是框架集(iFrames).

相关

_IEFrameGetCollection

示例/演示


; *******************************************************
; 示例 1 - 显示框架集示例, 获取框架集合,
;               检查框架数目, 显示现在的框架或 iFrames 的数目
; *******************************************************

#include <IE.au3>

Local $oIE = _IE_Example("frameset")
Local $oFrames = _IEFrameGetCollection($oIE)
Local $iNumFrames = @extended
If $iNumFrames > 0 Then
    If _IEIsFrameSet($oIE) Then
        MsgBox(4096, "Frame Info", "Page contains " & $iNumFrames & " frames in a FrameSet")
    Else
        MsgBox(4096, "Frame Info", "Page contains " & $iNumFrames & " iFrames")
    EndIf
Else
    MsgBox(4096, "Frame Info", "Page contains no frames")
EndIf