Share via


IFrameElement.setAttribute Method

SharePoint Designer Developer Reference

Sets the attribute for an IFRAME element.

Syntax

expression.setAttribute(strAttributeName, AttributeValue, lFlags)

expression   Required. A variable that represents an IFrameElement object.

Parameters

Name Required/Optional Data Type Description
strAttributeName Required String Specifies the name of the attribute.
AttributeValue Required Variant Specifies the value of the attribute.
lFlags Optional Long Specifies one the following flags:
Value Description
0 When the attribute is set, it overwrites any attributes with the same name, regardless of their case.
1 The case of the attribute that you set is respected when it is set on the object.

Remarks

Use the setAttribute method to programmatically set an attribute that has a corresponding read-only property or an attribute for which there is no corresponding property in the Office SharePoint Designer object model.

See Also