|
|
|
Frames
There are two main types of frames that you may wish to use.
Note: Many of the older browsers could not display information in frames, so it is important to provide a non-frame alternative, if frames cannot be handled.
There are many configuration settings that can be applied to a Frame, these are not covered in detail here.
IFrames are the simplest to use, so we will start with these in the sample code below. The code represents a simple Home page with a help page "helpsamp.htm" embedded in it.
As in previous examples copy the code into your page as required and edit the red text to suit your own needs.
Sample code for an IFrame
<html> <head> <title>Home Page</title> </head> <body> <h1>Page Title</h1> <p>The page in the frame below is the help page.</p> <IFrame src="helpsamp.htm" width=400 height=200 ></iFrame> <br> <p>This text follows the IFrame section</p> </body> </html>
The Page preview is shown below. Page TitleThe page in the frame below is the help page. This text follows the IFrame section. |
|
You can submit your code fragments to us for publication here, by emailing to site at byscript.com.
|