Skip to content
Advertisement

How to print text from textarea?

I want to print text from text area.

I have a textarea which text can be updated by user. When user update text from textarea and then print the updated text can be print on page. And this text can be print on print page without textarea.

Please suggest any solution.

Thanks

Advertisement

Answer

I think I got what you are asking for. Give it a try:

JavaScript

Basically this will open another child window and execute javascript print on that so that the textarea and other things don’t get printed.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement