what is linking frame write the step to create linking frame
Answers
Answered by
0
Linking between frames creates the "magic" of using frames. Linking can make the same frame change its contents or have a different frame change its contents.
First, start off with a simple column layout again.
<html>
<head>
<title>Master Page Example</title>
</head>
<frameset
cols=" 35%,65% ">
<frame src="page1.html">
<frame src="page2.html">
</frameset>
</html>
Linking in the same frame.
Open the coding for "PAGE 1" and create a simple link that goes to "PAGE 3".
<html>
<head>
<title> Page 1 example </title>
</head>
<body>
This is page 1
<BR>
Link to page 3 <a href="page3.html"> CLICK HERE </a>
</body>
</html>
When the Master Page is run, the first column containing "PAGE 1" will now have a link to "PAGE 3". Clicking on this link will load "PAGE 3" into the same frame (column) that "PAGE 1" occupies.
Click here to see the example in action.
Linking to a different frame
Linking to a different frame requires using the
NAME and TARGET properties. This gives the browser instructions on where to open the link.
On the Master Page, the
NAME property is entered into the FRAME SRC tag to give the frame a name.
<html>
<head>
<title>Master Page Example</title>
</head>
<frameset cols="35%,65%">
<frame src="page1.html">
<frame src="page2.html"
name=" MainWindow">
</frameset>
</html>
In PAGE1, the TARGET property will be added to the A HREF tag. This is a "pointer" to find the named area.
<html>
<head>
<title> Page 1 example </title>
</head>
<body>
This is page 1
<BR>
Link to page 3
<a href="page3.html"
target=" MainWindow" >
CLICK HERE
</a>
</body>
</html>
When the link in "PAGE 1" is activated, the TARGET will look for the NAME and load the link into that particular frame.
Click here to see the example in action.
Note : Be sure to check your spelling and CaSe LeTtErS for the NAMES and TARGETS. They should match EXACTLY to work properly.
Add another link into
First, start off with a simple column layout again.
<html>
<head>
<title>Master Page Example</title>
</head>
<frameset
cols=" 35%,65% ">
<frame src="page1.html">
<frame src="page2.html">
</frameset>
</html>
Linking in the same frame.
Open the coding for "PAGE 1" and create a simple link that goes to "PAGE 3".
<html>
<head>
<title> Page 1 example </title>
</head>
<body>
This is page 1
<BR>
Link to page 3 <a href="page3.html"> CLICK HERE </a>
</body>
</html>
When the Master Page is run, the first column containing "PAGE 1" will now have a link to "PAGE 3". Clicking on this link will load "PAGE 3" into the same frame (column) that "PAGE 1" occupies.
Click here to see the example in action.
Linking to a different frame
Linking to a different frame requires using the
NAME and TARGET properties. This gives the browser instructions on where to open the link.
On the Master Page, the
NAME property is entered into the FRAME SRC tag to give the frame a name.
<html>
<head>
<title>Master Page Example</title>
</head>
<frameset cols="35%,65%">
<frame src="page1.html">
<frame src="page2.html"
name=" MainWindow">
</frameset>
</html>
In PAGE1, the TARGET property will be added to the A HREF tag. This is a "pointer" to find the named area.
<html>
<head>
<title> Page 1 example </title>
</head>
<body>
This is page 1
<BR>
Link to page 3
<a href="page3.html"
target=" MainWindow" >
CLICK HERE
</a>
</body>
</html>
When the link in "PAGE 1" is activated, the TARGET will look for the NAME and load the link into that particular frame.
Click here to see the example in action.
Note : Be sure to check your spelling and CaSe LeTtErS for the NAMES and TARGETS. They should match EXACTLY to work properly.
Add another link into
Similar questions