• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 173
  • Last Modified:

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.
0
flmartins
Asked:
flmartins
1 Solution
 
Michel PlungjanIT 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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now