IHTMLDocument Interface

大模型之Spring AI实战系列(一):基础认知篇 - 开启智能应用开发之旅 Spring AI 是一个轻量级开源框架,旨在简化 AI 模型在企业级 Java 应用中的集成与管理。它提供了跨多个 AI 服务提供商的便携式 API,支持聊天、文本转图像、嵌入式模型等多种功能,并兼容主流的 AI 模型提供商如 OpenAI、Google 等。Spring AI 的核心功能包括结构化输出、向量数据库支持、工具/函数调用、可观察性、文档摄取 ETL 框架、AI 模型评估等。 阅读详情

IHTMLDocument Interface

Used to get information about a document, to examine and modify the HTML elements and text in the document, and to process related events.

IHTMLDocument Members

ScriptGets an interface pointer that provides access to the scripting object via a handle to the script engine.

Remarks

Typically, every window object has a corresponding document object that you get by calling the QueryInterface function with the IID_IHTMLDocument or IID_IHTMLDocument2 interface identifiers. A document object represents the HTML document in a given browser window. Windows that contain HTML documents always have valid document objects; windows that contain documents in other formats might not have valid document objects.

In general, before you attempt to get the document object for a window that is not the current window, make sure that the source file associated with that window is an HTML document file or a file that can be represented as an HTML document—for example, a text file.

Interface Information

Stock Implementationmshtml.dll
Custom ImplementationNo
Inherits fromIDispatch
Header and IDL filesMshtml.h, Mshtml.idl
Minimum availabilityInternet Explorer 4.0
Minimum operating systemsWindows 95, Windows NT 4.0, Windows CE 2.12

 

 

 

IHTMLDocument2 Interface

Gets information about the document, and examines and modifies the HTML elements and text in the document.

IHTMLDocument2 Members

activeElementGets the object that has the focus when the parent document has focus.
alinkColorSets or gets the color of all active links in the document.
allGets an interface pointer to a zero-based collection of all the elements in an HTML document.
anchorsGets an interface pointer to a zero-based collection of all the a objects in an HTML document.
appletsGets an interface pointer to a zero-based collection of all of the applet objects in an HTML document.
bgColorDeprecated. Sets or retrieves a value that indicates the background color behind the object.
bodyGets an interface pointer to the document body object.
charsetSets or retrieves the character set used to encode the object.
clearNot currently supported.
closeCloses an output stream and forces the sent data to display.
cookieSets or gets the string value of a cookie.
createElementCreates an instance of the element for the specified tag.
createStyleSheetCreates a style sheet for the document.
defaultCharsetGets the default character set from the current regional language settings.
designModeSets or gets a value that indicates whether the document can be edited.
domainSets or gets the security domain of the document.
elementFromPointReturns the element for the specified x coordinate and the specified y coordinate.
embedsGets an interface pointer to a zero-based collection of all of the embed objects in an HTML document.
execCommandExecutes a command on the current document, current selection, or the given range.
execCommandShowHelpDisplays help information for the given command identifier.
expandoSets or retrieves a value indicating whether arbitrary variables can be created within the object.
fgColorSets or gets the foreground (text) color of the document.
fileCreatedDateRetrieves the date the file was created.
fileModifiedDateRetrieves the date the file was last modified.
fileSizeRetrieves the file size.
fileUpdatedDateRetrieves the date the file was last updated.
formsGets an interface pointer to a zero-based collection of all the form objects in an HTML document.
framesGets an interface pointer to a zero-based collection of all of the frame objects in an HTML document, if the document contains the frameSet object. Gets an interface pointer to a zero-based collection of all of the iframe objects in the document, if the document contains the body object.
imagesGets a pointer to the IHTMLElementCollection interface of the zero-based collection of all of the images in an HTML document. The images are in the same order as they appear in the document.
lastModifiedGets the date that the page was last modified, if the page supplies one.
linkColorSets or gets the color of the document links.
linksGets an interface pointer to a zero-based collection of all of the link objects and the area objects in an HTML document.
locationRetrieves an interface pointer to a location object.
mimeTypeRetrieves the MIME type for the file.
namePropGets the title of the document file.
onafterupdateSets or retrieves a pointer to the event handler function associated with the onafterupdate event.
onbeforeupdateSets or retrieves a pointer to the event handler function associated with the onbeforeupdate event.
onclickSets or retrieves a pointer to the event handler function associated with the onclick event.
ondblclickSets or retrieves a pointer to the event handler function associated with the ondblclick event.
ondragstartSets or retrieves a pointer to the event handler function associated with the ondragstart event.
onerrorupdateSets or retrieves a pointer to the event handler function associated with the onerrorupdate event.
onhelpSets or retrieves a pointer to the event handler function associated with the onhelp event.
onkeydownSets or retrieves a pointer to the event handler function associated with the onkeydown event.
onkeypressSets or retrieves a pointer to the event handler function associated with the onkeypress event.
onkeyupSets or retrieves a pointer to the event handler function associated with the onkeyup event.
onmousedownSets or retrieves a pointer to the event handler function associated with the onmousedown event.
onmousemoveSets or retrieves a pointer to the event handler function associated with the onmousemove event.
onmouseoutSets or retrieves a pointer to the event handler function associated with the onmouseout event.
onmouseoverSets or retrieves a pointer to the event handler function associated with the onmouseover event.
onmouseupSets or retrieves a pointer to the event handler function associated with the onmouseup event.
onreadystatechangeSets or retrieves a pointer to the event handler function associated with the onreadystatechange event.
onrowenterSets or retrieves a pointer to the event handler function associated with the onrowenter event.
onrowexitSets or retrieves a pointer to the event handler function associated with the onrowexit event.
onselectstartSets or retrieves a pointer to the event handler function associated with the onselectstart event.
openOpens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the IHTMLDocument2::write method and the IHTMLDocument2::writeln method.
parentWindowGets a reference to the container object of the window.
pluginsGets an interface pointer to a zero-based collection of all of the embed objects in an HTML document.
protocolSets or retrieves the protocol portion of a URL.
queryCommandEnabledReturns a Boolean value that indicates whether a specified command can be successfully executed using IHTMLDocument2::execCommand, given the current state of the document.
queryCommandIndetermReturns a Boolean value that indicates whether the specified command is in the indeterminate state.
queryCommandStateReturns a Boolean value that indicates the current state of the command.
queryCommandSupportedReturns a Boolean value that indicates whether the current command is supported on the current range.
queryCommandTextRetrieves the string associated with a command.
queryCommandValueReturns the current value of the document, range, or current selection for the given command.
readyStateRetrieves a value that indicates the current state of the object.
referrerGets the URL of the location that referred the user to the current page.
scriptsGets an interface pointer to a zero-based collection of all of the script objects in an HTML document.
securityNot implemented.
selectionGets an interface pointer to an object representing the active selection. The active selection can be an insertion point, a highlighted block of text, or another element in the document that the user or a script can carry out an action on.
styleSheetsGets an interface pointer to a zero-based collection of the style sheet objects exposed from the document object. Each style sheet object represents an individual style sheet that is defined for the document.
titleSets or gets the title of the document.
toStringRetrieves a string representation of the object.
URLSets or gets the URL for the current document.
vlinkColorSets or gets the color of the links that the user has visited.
writeWrites one or more HTML expressions to a document in the specified window.
writelnWrites one or more HTML expressions, followed by a carriage return, to a document in the specified window.

Remarks

Typically, every window object has a corresponding document object that you can get by calling the QueryInterface method with the IID_IHTMLDocument or IID_IHTMLDocument2 interface identifiers. Windows that contain HTML documents always have valid document objects; windows that contain documents in other formats might not have valid document objects.

In general, before you attempt to get the document object for a window that is not the current window, make sure that the source file associated with that window is an HTML document file or a file that can be represented as an HTML document, for example, a text file.

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

Interface Information

Stock Implementationmshtml.dll
Custom ImplementationNo
Inherits fromIDispatch
Header and IDL filesMshtml.h, Mshtml.idl
Minimum availabilityInternet Explorer 4.0
Minimum operating systemsWindows 95, Windows NT 4.0, Windows CE 2.12

 

 

 

IHTMLDocument3 Interface

Provides access to additional properties and methods of the document objects.

IHTMLDocument3 Members

attachEventBinds the specified function to an event, so that the function gets called whenever the event fires on the object.
baseUrlNot currently supported.
childNodesGets the child nodes of the document object.
createDocumentFragmentCreates a new document and returns a pointer to the newly created document.
createTextNodeCreates a text string from the specified value.
detachEventUnbinds the specified function from the event, so that the function stops receiving notifications when the event fires.
dirSets or retrieves a value that indicates the reading order of the object.
documentElementGets a reference to the root node of the document.
enableDownloadNot currently supported.
getElementByIdReturns a reference to the first object with the specified value of the ID or NAME attribute.
getElementsByNameGets a collection of objects based on the value of the NAME or ID attribute.
getElementsByTagNameRetrieves a collection of objects based on the specified element name.
inheritStyleSheetsNot currently supported.
onbeforeeditfocusSets or retrieves a pointer to the event handler function associated with the onbeforeeditfocus event.
oncellchangeSets or retrieves a pointer to the event handler function associated with the oncellchange event.
oncontextmenuSets or retrieves a pointer to the event handler function associated with the oncontextmenu event.
ondataavailableSets or retrieves a pointer to the event handler function associated with the ondataavailable event.
ondatasetchangedSets or retrieves a pointer to the event handler function associated with the ondatasetchanged event.
ondatasetcompleteSets or retrieves a pointer to the event handler function associated with the ondatasetcomplete event.
onpropertychangeSets or retrieves a pointer to the event handler function associated with the onpropertychange event.
onrowsdeleteSets or retrieves a pointer to the event handler function associated with the onrowsdelete event.
onrowsinsertedSets or retrieves a pointer to the event handler function associated with the onrowsinserted event.
onstopSets or gets a pointer to the event handler function associated with the event.
parentDocumentGets an interface pointer that provides access to the document interface for the parent object.
recalcRecalculates all dynamic properties in the current document.
releaseCaptureRemoves mouse capture from the object in the current document.
uniqueIDRetrieves an autogenerated, unique identifier for the object.

Interface Information

Stock Implementationmshtml.dll
Custom ImplementationNo
Inherits fromIDispatch
Header and IDL filesMshtml.h, Mshtml.idl
Minimum availabilityInternet Explorer 5
Minimum operating systemsWindows 95, Windows NT 4.0, Windows CE 4.0

 

 

 

IHTMLDocument4 Interface

Provides access to additional properties and methods of the document object, which represents the HTML document in a given browser window.

IHTMLDocument4 Members

createDocumentFromUrlCreates a new document object from an existing URL.
createEventObjectGenerates an event object to pass event context information when you use the IHTMLDocument4::fireEvent method.
createRenderStyleCreates an IHTMLRenderStyle interface.
fireEventFires a specified event on the object.
focusCauses the document to receive the focus.
hasFocusGets a value indicating whether the object currently has focus.
mediaNot currently supported.
namespacesGets the collection of all namespace objects associated with the document.
oncontrolselectSets or retrieves a pointer to the event handler function associated with the oncontrolselect event.
onselectionchangeSets or gets a pointer to the event handler function associated with the onselectionchange event.
URLUnencodedGets the URL for the document, stripped of any character encoding.

Interface Information

Stock Implementationmshtml.dll
Custom ImplementationNo
Inherits fromIDispatch
Header and IDL filesmshtml.h, mshtml.idl
Minimum availabilityInternet Explorer 5.5
Minimum operating systemsWindows 95, Windows NT 4.0, Windows CE 4.0

 

 

 

IHTMLDocument5 Interface

Provides access to additional properties and methods of the document object, which represents the HTML document in a given browser window.

IHTMLDocument5 Members

compatModeGets a value that indicates whether standards-compliant mode is switched on for the object.
createAttributeCreates an IHTMLDOMAttribute interface with a specified name.
createCommentCreates an IHTMLCommentElement2 interface with the specified data.
doctypeGets the document type declaration associated with the current document.
implementationGets the implementation object of the current document.
onactivateSets or retrieves a pointer to the event handler function associated with the onactivate event.
onbeforeactivateSets or retrieves a pointer to the event handler function associated with the onbeforeactivate event.
onbeforedeactivateSets or retrieves a pointer to the event handler function associated with the onbeforedeactivate event.
ondeactivateSets or retrieves a pointer to the event handler function associated with the ondeactivate event.
onfocusinSets or retrieves a pointer to the event handler function associated with the onfocusin event.
onfocusoutSets or retrieves a pointer to the event handler function associated with the onfocusout event.
onmousewheelSets or retrieves a pointer to the event handler function associated with the onmousewheel event.

Remarks

IHTMLDocument5 was introduced in Microsoft Internet Explorer 6.

Interface Information

Stock Implementationmshtml.dll
Custom ImplementationNo
Inherits fromIDispatch
Header and IDL filesmshtml.h, mshtml.idl
Minimum availabilityInternet Explorer 6
Minimum operating systemsWindows 98, Windows NT 4.0

See Also

 

 

 

IHTMLDocument6 Interface

 

Extends IHTMLDocument5 with support for document compatibility modes and DOM Storage events.

IHTMLDocument6 Members

compatibleRetrieves the collection of user agents and versions declared in the X-UA-Compatible
documentModeRetrieves the document compatibility mode of the document.
getElementByIdReturns a reference to the first object with the specified ID value.
onstorageSets or retrieves a pointer to the event handler function associated with the DOM Storage event.
onstoragecommitSets or retrieves a pointer to the event handler function associated with the DOM Storage
updateSettingsAllows updating the print settings for the page.

Interface Information

Stock Implementationmshtml.dll
Custom ImplementationNo
Inherits fromIDispatch
Header and IDL filesmshtml.h, mshtml.idl
Minimum availabilityInternet Explorer 8
Minimum operating systemsWindows XP SP2

See Also

Defining Document Compatibility
激光雷达点云可视化:Open3D与PCL实战 激光雷达点云可视化:Open3D与PCL实战 ,人工智能,计算机视觉,大模型,AI,该文围绕激光雷达点云可视化,介绍了Open3D与PCL的实战应用。先阐述点云基础概念、特点及可视化意义,接着讲解Open3D的简介、环境配置,以及其在点云读取、显示、颜色设置、下采样和滤波等方面的实战操作,还介绍了PCL的基础、环境配置及相关实战,包括点云读取、显示、颜色设置、下采样和滤波,同时对比了两者的易用性、功能覆盖、性能和适用场景,给出综合实战案例与常见问题解决方法,为点云可视化处理提供了全面指导。 阅读详情

相关推荐

Waymo数据集里的隐藏彩蛋:5个激光雷达数据融合实战(附Python代码)

本文深入解析Waymo数据集中5个激光雷达的数据融合技术,提供Python实战代码,帮助开发者掌握多传感器协同工作的关键方法。通过时间同步、坐标转换和运动补偿等技术,实现高精度3D场景重建,提升自动驾驶系统的环境感知能力。

weixin_30399821的博客 87

IHTMLDocument2 Interface 汉化

IHTMLDocument2 Members activeElement Gets the object that has the focus when the parent document has focus. 当它的父文档拥有焦点时 获得当前focus的子对象 alinkColor Sets or gets the color of all active...

emowuyi 224

GEOPHYSICS 投稿避坑指南:从格式规范到双盲评审的实战解析

本文详细解析了GEOPHYSICS期刊投稿的全流程避坑指南,从格式规范、数据声明到双盲评审的实战策略。特别强调了数学公式排版、图表制作标准以及投稿系统的隐藏关卡,帮助作者避免常见错误,提升投稿成功率。

weixin_30606461的博客 239

ASP.NET TextBox Support KeyPress Down Event

直接按回车键,然后进行查询功能。txtSearch.Attributes.Add("onkeydown", "if(event.which || event.keyCode){if ((event.which == 13) || (event.keyCode == 13)) {document.getElementById(" + this.btnSearch.UniqueID + ").

kissjob的专栏 1098

pandas,构造MultiIndex的四种方法:from_tuples、from_arrays、from_product、from_frame

1、from_tuples:通过 “元组对” 构造MultiIndex """ 一对元组,为一个索引 """ tuples = [(1, 'red'), (1, 'blue'), (2, 'red'), (2, 'blue')] pd.MultiIndex.from_tuples(tuples, names=('number', 'color')) 2、from_arrays:通过 “列表元素的组合” 构造MultiIndex """ 列中表的元素,按位置 对应组合,形成索引 """ arrays

jieru_liu的博客 5398

Reeds-Shepp曲线公式推导及代码实现-第三部分(共三部分)

根据原始起点的坐标和航向,将上一小节计算出来的局部进行整体的平移和旋转(与归一化的步骤刚好相反),最终得到全局路径的轨迹。根据计算出来的路径,选择路径最短的轨迹(也可根据我们实际的需要定制选优规则),作为最终的轨迹输出。Reeds-Shepp曲线公式推导及代码实现-第一部分(共三部分)Reeds-Shepp曲线公式推导及代码实现-第二部分(共三部分)的值进行等步长插值,得到每段轨迹对应的生成一系列插值距离列表。根据上一步生成的插值距离列表的值,计算其对应的局部位姿值。后,我们需要根据字段类型(

jianmo的博客 1094

IHTMLDocument2 interface

Gets information about the document, and examines and modifies the HTML elements and text in the document. Members The IHTMLDocument2 interface inherits from the IDispatch interface. IHTMLDocument

IT人生 2782

无人机散热系统设计:从材料选择到智能调控的全面解析

本文全面解析无人机散热系统设计,从材料选择到智能调控,探讨了导热界面材料、轻量化散热结构和智能调控算法的应用。通过实战案例,展示了如何在极端环境下优化散热性能,提升无人机的工作效率和可靠性。

weixin_42567279的博客 434

IHTMLDocument2的所有成员、属性、方法、事件

转自:http://www.ydfzx.com/notice.php?id=2121 ​ ​ ​ ​ IHTMLDocument2 Interface Gets information about the document, and examines and modifies the HTML elements and tex

lurenmei的专栏 2284

【SEW-伺服电机-Profinet-io通讯控制——伺服配置】

SEW-伺服电机-Profinet-io通讯控制——伺服配置一、本次使用配置说明编写经历受国际形式与疫情影响相关资料查询阅读测试验证不易二、伺服配置流程1.基本准备条件2.硬件-电路连接3.设备在线连接4.软件-参数配置5.手动运行测试6.PN-IO自动控制配置8.PLC1200硬件组态9.PLC软件编程10.调试故障分析三、总结四、参考 一、本次使用配置说明编写经历 受国际形式与疫情影响 由于近期受国际形式影响以及全球疫情影响,Siemens等常用产品供货期与供货量严重受限,项目上不得不采取选用其它替代产

qq_39024187的博客 1万+

Open Dynamics Engine(ODE)物理引擎基础教程(I)——特点介绍

下一教程 Open Dynamics Engine(ODE)物理引擎基础教程(II)——相关概念 (在这一教程中将学习刚体、关节、碰撞的概念在ODE中的特点) 本文结构引言介绍特点使用ODE总结 引言 本文翻译自ODE官方教程英文版,有些地方增加了自己的理解。这一节介绍ODE的相关概念。 基础教程英文原版链接【http://ode.org/wiki/index.php?title=Manua...

腿足机器人领域 1683

IHTMLDocument2的所有成员、属性、方法、事件[转]

原文发布时间为:2010-07-01 —— 来源于本人的百度文章 [由搬家工具导入]IHTMLDocument2 InterfaceGets information about the document, and examines and modifies the HTML elements and text in the document.IHTMLDocument2 Members ...

weixin_30337157的博客 214

S7-200 SMART PLC 数字量阀门控制功能块(FB)汇总

S7-200 SMART PLC功能块的各种写法可以查看专栏的其它文章,链接地址如下:S7-200 SMART PLC 子程序功能块(阀门控制)_RXXW_Dor的博客-CSDN博客_plc控制阀门开关程序由于S7-200 SMARTPLC的子程序种种功能、容量限制,有时想实现多次调用的子程序可能并不是太容易,这篇博客还是给出一些推荐写法,供大家参看。

RXXW_Dor的博客 4008

IHTMLDocument2接口

MIDL_INTERFACE("332c4425-26cb-11d0-b483-00c04fd90119")IHTMLDocument2 : public IHTMLDocument{public: virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_all( /* [out][retval] */ IHTML

邓学彬(泪闯天涯)的专栏 5026

win10 跳过U8环境检测的IE WebControls.rar

win10 安装u8的时候 提示IE WebControls 不通过,这个工具可以欺骗u8的检查。 跳过U8环境检测的IE WebControls。提示导入失败后,重新检测通过。

计算机控制技术及应用

《计算机控制技术及应用》通过总结作者的科研成果和吸收国内外的先进理论、方法和技术,以计算机控制系统的网络化、开放化、智能化和集成化发展趋势为主线索,主要介绍计算机控制系统的基本概念和计算机控制系统的典型形式,计算机控制系统的数学描述与基本分析方法,以及数字PID控制器、最少拍控制系统、达林算法、状态变量设计法等设计方法及其各种改进算法。重点突出计算机控制系统输入输出通道接口的设计方法和典型控制系统的设计案例与实现方法等。

利用IWebBrowser2的IWebBrowser2::get_Document得doc对象

 two   way   to   get   HTML   interfaces     1   call   CWnd::GetControlUnknown   to   get   IWebbrowser2   Interface     LPUNKNOWN   lpUnk   =   m_wndBrowser.GetControlUnknown();     HRESULT   hr  

xuanwu1015的专栏 5962

jre9下载 jdk9

(Java SE Runtime Environment 9.0) 9.0u175 官方最新版 【x86|x64】

How to get IHTMLDocument2 from a HWND

http://support.microsoft.com/kb/249232 This article shows how to get the IHTMLDocument2 interface from a HWND. If Microsoft Active Accessibility (MSAA) is installed, you can send the WM_HTML

visualassist4680的专栏 959

华为的C语言编程规范.pdf

华为技术有限公司内部技术规范。本规范制定了编写C语言程序的基本原则、规则和建议。从代码的清晰、简洁、可测试、安全、程序效率、可移植各个方面对C语言编程作出了具体指导。

ActiveX Calling JavaScript

<br /><br />Q: I have an ActiveX control used on the web build under MFC.  I want to be able to call a javascript <br />funtion on the webpage the control is hosted.  How do I do this?<br /><br />A: You can use execScript method of the IHTMLWindow2 inter

SHYBT'S BLOG 525

CHtmlView 和 Webbrowser 控件中超链接点击事件的获取与检测

在自己的程序中使用 CHtmlView 或直接嵌入 Webbrowser 控件显示网页时,常常需要获取网页元素的一些事件,以实现对网页显示的控制或与网页元素进行交互。最常见的莫过于获取用户对网页上超链接的所有点击事件。要实现这个需求,在 MSDN 中描述了接收网页元素事件的基本方法,但这篇文章的一些细节语焉不详,让人摸不着头脑。在 CodeProject 这篇文章中提出了一种替代的方法,但是存在一

vrix的专栏 2690

IE编程---DLL绑定

 IE编程---DLL绑定     选择自 solarsoft 的 Blog 关键字  IE,VC COM,ALT出处  IE编程---DLL绑定顾剑辉(http://solarsoft.126.com)我查阅了一些资料,但写关于IE的DLL绑定的文章并不多,而且,写得不是很清楚。为此,我想介绍一下,这个方法:基础知识:VC COM,(ALT

skyremember的专栏 1024

定制浏览器

 定制浏览器http://www.vcmain.com/helloworld/archive/11310.htmlhelloworld 发表于:2008-9-29 14:52:00   阅读数:8 定制浏览器作者:冯明德浏览器控件是个典型的Active控件,提供了大量的接口及自动化对象,可以灵活的加以控制,需要的时候,可

skyremember的专栏 2432
上一篇: IHTMLCurrentStyle Interface
下一篇: js学习笔记2
iseekcode
博客等级 码龄18年 36粉丝 14原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址