
This interface provides access to properties and methods that are common to FRAME and IFRAME elements.
IHTMLFrameBase Methods
HRESULT put_src(
BSTR v
);
Sets the URL of the associated file.
See also get_src
HRESULT get_src(
BSTR *p
);
Retrieves the URL of the associated file.
See also put_src
HRESULT put_name(
BSTR v
);
Sets the name of the frame so it can be targeted from links in other documents.
| window_name | String that specifies a frame. |
| _blank | Loads the link into a new, unnamed window. |
| _parent | Loads the link over the parent. If the frame has no parent, this refers to _self. |
| _self | Replaces the page with the specified link. |
| _top | Loads the link at the topmost level. |
The name property on the window comes from the FRAME definition. There is no other way to persist a window name in HTML.
See also get_name
HRESULT get_name(
BSTR *p
);
Retrieves the name of the frame so it can be targeted from links in other documents.
| window_name | String that specifies a frame. |
| _blank | Loads the link into a new, unnamed window. |
| _parent | Loads the link over the parent. If the frame has no parent, this refers to _self. |
| _self | Replaces the page with the specified link. |
| _top | Loads the link at the topmost level. |
The name property on the window comes from the FRAME definition. There is no other way to persist a window name in HTML.
See also put_name
HRESULT put_border(
VARIANT v
);
Specifies the thickness of the border.
Setting a border to zero or omitting the attribute causes no border to be displayed. Supplying the border attribute without a value defaults to a single border.
See also get_border
HRESULT get_border(
VARIANT *p
);
Retrieves the thickness of the border.
Setting a border to zero or omitting the attribute causes no border to be displayed. Supplying the border attribute without a value defaults to a single border.
See also put_border
HRESULT put_frameBorder(
BSTR v
);
Specifies whether to display a border for the frame.
See also get_frameBorder
HRESULT get_frameBorder(
BSTR *p
);
Determines whether a border is currently being displayed for the frame.
See also put_frameBorder
HRESULT put_frameSpacing(
VARIANT v
);
Creates additional space between the frames, in pixels.
The amount defined for frameSpacing does not include the width of the frameBorder. frameSpacing can be set on one or more FRAMESETs, and applies to the contained FRAMESET unless the contained FRAMESET defines a different frameSpacing.
See also get_frameSpacing
HRESULT get_frameSpacing(
VARIANT *p
);
Retrieves the amount of additional space between the frames, in pixels.
The amount defined for frameSpacing does not include the width of the frameBorder. frameSpacing can be set on one or more FRAMESETs, and applies to the contained FRAMESET unless the contained FRAMESET defines a different frameSpacing.
See also put_frameSpacing
HRESULT put_marginWidth(
VARIANT v
);
Sets the width, in pixels, of the left and right margins for the text in a frame.
Margins cannot be less than 1 nor too large that the text cannot be displayed.
See also get_marginWidth
HRESULT get_marginWidth(
VARIANT *p
);
Retrieves the width, in pixels, of the left and right margins for the text in a frame.
Margins cannot be less than 1 nor so large that the text cannot be displayed.
See also put_marginWidth
HRESULT put_marginHeight(
VARIANT v
);
Sets the width, in pixels, of the top and bottom margins for the text in a frame.
Margins cannot be less than 1 nor so large that the text cannot be displayed.
See also get_marginHeight
HRESULT get_marginHeight(
VARIANT *p
);
Retrieves the width, in pixels, of the top and bottom margins for the text in a frame.
Margins cannot be less than 1 nor so large that the text cannot be displayed.
See also put_marginHeight
HRESULT put_noResize(
VARIANT_BOOL v
);
Specifies whether the user can resize the frame.
See also get_noResize
HRESULT get_noResize(
VARIANT_BOOL *p
);
Retrieves whether the user can resize the frame.
See also put_noResize
HRESULT put_scrolling(
BSTR v
);
Specifies whether the frame can be scrolled.
| auto | The browser determines if the scroll bars are necessary. This is the default value. |
| no | The frame cannot be scrolled. |
| yes | The frame can be scrolled. |
See also get_scrolling
HRESULT get_scrolling(
BSTR *p
);
Retrieves a value indicating whether the frame can be scrolled.
| auto | The browser determines if the scroll bars are necessary. This is the default value. |
| no | The frame cannot be scrolled. |
| yes | The frame can be scrolled. |
See also put_scrolling
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.