/    Sign up×
Community /Pin to ProfileBookmark

frame function

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[/B] from this page page(1.html) i am calling this js function

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?

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@GuaranaAug 03.2005 — Why dont you use 2 div with IFrame within them?
Copy linkTweet thisAlerts:
@swapnilauthorAug 04.2005 — please can u explain me that?how to use 2 div with IFrame within them?

with example?
×

Success!

Help @swapnil spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...