httpEquiv Property
Sets or returns a String that represents the information used to bind the content of a META element to an HTTP response header.
expression.httpEquiv
*expression * Required. An expression that returns one of the objects in the Applies To list.
Remarks
The httpEquiv property contains the value of the httpEquiv attribute. Use the content and charset properties to specify the content and charset attributes, respectively.
Example
The following example inserts a <META> tag that contains the character set to use for the active document.
Sub InsertCharset(ByRef objDoc As FPHTMLDocument, ByRef strID As String, _
ByRef strHTTP As String, ByRef strContent As String, ByRef strCharset As String)
Dim objMeta As FPHTMLMetaElement
objDoc.all.tags("head").Item(0) _
.innerHTML = "<META id=""" & strID & """>"
Set objMeta = ActiveDocument.all.tags("meta").Item(CVar(strID))
With objMeta
.httpEquiv = strHTTP
.content = strContent
.Charset = strCharset
End With
End Sub
Use the following example to call the preceding subroutine.
Sub CallInsertCharset()
Call InsertCharset(objDoc:=ActiveDocument, strID:="iso_content", _
strHTTP:="Content-Type", strContent:="text/html", strCharset:="ISO Latin-1")
End Sub
Applies to | FPHTMLMetaElement Object | IHTMLMetaElement Object