This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Javascript" Watch "Javascript" New topic
Author

Javascript

Sri Yasasvi
Greenhorn

Joined: Nov 07, 2008
Posts: 27
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: 60050
    
  65

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Javascript
 
Similar Threads
Listbox selected value in text area-Java script
adding font formatting features to jsp
jsp dynamically upload content
onKeyPress Event In Javascript
Struts action mappings not working correctly