Name
Inline Frame
Description
Defines a rectangular area (frame) on the page, in which another document is
displayed. The IFRAME is useful to display documents related to the main
document e.g. see http://vb6.martin2k.co.uk/exes/waffle.php.
Also you can display a webcam image, which refreshes itself independently from
the rest of the page.
Attributes
ALIGN
Specifies the horizontal alignment of the frame. The possible values
are:
| Value |
| bottom |
| left |
| middle |
| right |
| top |
FRAMEBORDER
Set to '1' to display a border for the frame, set to '0' to not show a
border.
HEIGHT
Sets the height, either as a pixel value or a percentage.
SCROLLING
Set to 'yes' to display a scrollbar in the frame, set to 'no' to not display
scrollbars or set to 'auto' to display scrollbars when they are needed.
SRC
Specifies the URL to link to display in the frame. To link to a file on the same site use
the local path e.g. src="index.html" or src="folder/contents.html".
You can also use dots to link to a document in the parent folder e.g. src="..\document.html".
To link to another site, use the full URL e.g.: src="http://www.martin2k.co.uk".
WIDTH
Sets the width, either as a pixel value or a percentage.
Example
Code
<iframe src="http://www.martin2k.co.uk"
width="640" height="480"></iframe>
Generates
© Martin Allen 1999 - 2006. Last updated Tuesday 10 October 2006 03:55:33 PM +0100.
|