Introduction:
We can easily split a window into several frames,and we can easily load various pages in each frames using javascript.
Main:
See the below examble,
<FRAMESET ROWS=”150, *”>
<FRAME NAME=”one” SRC=”samplepage.html”>
<FRAMESET COLS=”120, *”>
<FRAME NAME=”two” SRC=”samplepage1.html”>
<FRAME NAME=”three” SRC=”samplepage2.html”>
</FRAMESET>
</FRAMESET>
A link in samplepage.html that loads Yahoo in the right frame (“three”) would use the following syntax:
<A HREF=”http://www.Yahoo.com/” TARGET=”three”>Yahoo</A>
<SCRIPT LANGUAGE=”JavaScript”>
function loadPages()
{
parent.two.location.href = ‘http://www.microsoft.com/’
parent.three.location.href = ‘http://www.gmail.com/’
}
</SCRIPT>
<A HREF=”javascript:loadPages()”>Microsoft and Gmail</A>
Conclusion:
Hope,this helps,
Happy Coding.