Microsoft Office 2000/Visual Basic Programmer's Guide |
When you write script to work with the HTML elements in a Web page you are working with the page through the DHTML document object model. FrontPage exposes nearly all of the methods and properties of this object model through the FrontPage Page object model. To see the restrictions of the Page object model, search the Microsoft FrontPage Visual Basic Reference Help index for "object model," and then open the "Exploring the FrontPage Object Model" topic.
In FrontPage, you can use VBA code to work with the HTML elements in a Web page. You use the Document property or the ActiveDocument property to return a DHTML document object. Once you have the document object, you have access to all HTML elements contained in a Web page. For more information about working with the DHTML object model, see Chapter 12, "Using Web Technologies." You can get documentation for all of the objects, properties, and methods of the DHTML object model in the Htmlref.chm file located in the C:\Program Files\Microsoft Visual Studio\Common\IDE\IDE98\MSE\1033 subfolder.
Note The path to the Htmlref.chm Help file reflects the language ID folder (1033) for U.S. English language support in Office. The language ID folder below C:\Program Files\Microsoft Visual Studio\Common\IDE\IDE98\MSE differs for each language.