Microsoft HomeproductssearchsupportshopWrite Us   Microsoft Home
Magazine
 |  Community
 |  Workshop
 |  Tools & Samples
 |  Training
 |  Site Info

Workshop  |  Reusing Browser Technology

IHTMLDocument2 Interface


A document object represents the HTML document in a given browser window. You use the document object to retrieve information about the document, to examine and modify the HTML elements and text within the document, and to process events.

Typically, every window object has a corresponding document object that you can retrieve by calling the IUnknown::QueryInterface method with the IID_IHTMLDocument or IID_IHTMLDocument2 interface identifier. Windows that contain HTML documents always have valid document objects, but windows that contain documents in other formats might not. In general, before attempting to retrieve 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).

IHTMLDocument2 Methods

clear   close   createElement  
elementFromPoint   execCommand   execCommandShowHelp  
get_activeElement   get_alinkColor get_all  
get_anchors get_applets   get_bgColor  
get_body   get_charset   get_cookie  
get_defaultCharset   get_domain   get_embeds  
get_expando   get_fgColor get_fileCreatedDate  
get_fileModifiedDate   get_fileSize   get_fileUpdatedDate
get_forms   get_frames get_images
get_lastModified   get_linkColor   get_links  
get_location   get_mimeType   get_nameProp  
get_onafterupdate   get_onbeforeupdate   get_onclick  
get_ondblclick   get_ondragstart   get_onerrorupdate  
get_onhelp   get_onkeydown   get_onkeypress  
get_onkeyup   get_onmousedown   get_onmousemove  
get_onmouseout   get_onmouseover   get_onmouseup  
get_onreadystatechange   get_onrowenter   get_onrowexit  
get_onselectstart   get_parentWindow   get_plugins  
get_protocol   get_readyState   get_referrer  
get_scripts   get_security   get_selection  
get_styleSheets   get_title   get_URL  
get_vlinkColor open   put_alinkColor  
put_bgColor   put_charset put_cookie
put_defaultCharset   put_domain   put_expando  
put_fgColor   put_linkColor   put_onafterupdate  
put_onbeforeupdate   put_onclick   put_ondblclick  
put_ondragstart   put_onerrorupdate   put_onhelp  
put_onkeydown   put_onkeyup   put_onkeypress  
put_onmousedown   put_onmousemove   put_onmouseout  
put_onmouseover   put_onmouseup   put_onreadystatechange  
put_onrowenter   put_onrowexit   put_onselectstart  
put_title   put_URL put_vlinkColor  
queryCommandEnabled   queryCommandIndeterm   queryCommandState  
queryCommandSupported   queryCommandText   queryCommandValue  
toString   write writeln  

Does this content meet your programming needs? Write us!

Back to topBack to top

© 1998 Microsoft Corporation. All rights reserved. Terms of use.

 

Magazine Home
Ask Jane
DHTML Dude
Extreme XML
For Starters
More or Hess
Servin' It Up
Site Lights
Web Men Talking
Member Community Home
Benefits: Freebies & Discounts
Benefits: Promote Your Site
Benefits: Connect with Your Peers
Benefits at a Glance
Online Special-Interest Groups
Your Membership
SBN Stores
Join Now
Workshop Home
Essentials
Content & Component Delivery
Component Development
Data Access & Databases
Design
DHTML, HTML & CSS
Extensible Markup Language (XML)
Languages & Development Tools
Messaging & Collaboration
Networking, Protocols & Data Formats
Reusing Browser Technology
Security & Cryptography
Server Technologies
Streaming & Interactive Media
Web Content Management
Workshop Index
Tools & Samples Home
Tools
Samples, Headers, Libs
Images
Sounds
Style Sheets
Web Fonts
Training Home
SBN Live Seminars
SBN Live Chats
Courses
Peer Support
CD-ROM Training
Books & Training Kits
Certification
SBN Home
New to SBN?
What's New on SBN
Site Map
Site Search
Glossary
Write Us
About This Site