Solved

Document.write output in Main Frame

Posted on 1998-11-25
1
155 Views
Last Modified: 2008-03-06
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
Comment
Question by:flmartins
1 Comment
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 10 total points
ID: 1274571
<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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
I'm a Human captcha checkbox 13 41
Validating Date 4 28
How can I use Javascript to insure proper entry of URL? 6 26
Can anyone help me find this preloader? 51 42
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question