Document.write output in Main Frame

I have a page with 3 frames. And I would like to know the document.write syntax to display the output in the main frame, in javascript.
flmartinsAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Michel PlungjanConnect With a Mentor IT ExpertCommented:
<SCRIPT>
var Text = 'Hello world';
Text += '<BR>Here is some text';
top.main.document.open();
top.main.document.write(Text);
top.main.document.close();
</SCRIPT>

Michel
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.