It's not a secret anymore!
The moose likes HTML, CSS and JavaScript and the fly likes Javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Javascript" Watch "Javascript" New topic


Sri Yasasvi
Ranch Hand

Joined: Nov 07, 2008
Posts: 30

I have a question in javascript.

Let me explain the problem first.

In one page i am entering some text in text area. And when i click on print button on the same page, it would open up a new page for priniting. In that new page i want to display all the information of that text area what ever i have entered in first page without any scrollbars, in the new page.

How can i acheive this by using HTML and javascript.

I am looking if you could please help me in this.


Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
Well you have and document.write.

An example here:

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63844

Please be sure to take the time to compose descriptive subjects for your posts; read this for more information.

Using a title of "Javascript" in a forum completely dedicated to questions on JavaScript isn't very helpful.

Please go back and change your post to add a more meaningful subject by clicking the .

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Javascript
jQuery in Action, 3rd edition