GeeCON Prague 2014*
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
Author

Javascript

Sri Yasasvi
Greenhorn

Joined: Nov 07, 2008
Posts: 28
Hi,

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.

Thanks,
Sri

Tha
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Well you have window.open and document.write.

An example here: http://www.htmlgoodies.com/primers/jsp/article.php/3478241

Eric
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61310
    
  66

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] [Bear's FrontMan] [About Bear] [Books by Bear]
 
wood burning stoves
 
subject: Javascript