i want to write the js function which is when called from the html page ,will divide the html page into two frames.
I have one html page…[B]1.html
now i am posting my code below..i want to know how to write the frames tag in the js function….because if i write the frames tags in the document.write()
then it gives the error…please tell me where i am going wrong..and what needs to be done…
function makeframes()
{
docuemnt.write(‘<FRAMESET cols=”70%,30%”>’);
docuemnt.write(‘<FRAME SRC=”1.html” name=”left_frame”>’);
docuemnt.write(‘<FRAME SRC=”3.html” name=”right_frame”>’);
docuemnt.write(‘</FRAMESET> ‘);
}
what can be better way..if this is not correct one?