File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes window.print() Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "window.print()" Watch "window.print()" New topic
Author

window.print()

Sophia Choi
Ranch Hand

Joined: Mar 22, 2002
Posts: 106
I want to write a function to print the current window.But the error states that the object does not support this property.What is wrong ?
I only write a button and call window.print()
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
the p in print has to be lowercase
<input type="button" value="Print Page" name="Button" onclick="window.print()">
 
 
subject: window.print()
 
Threads others viewed
jsp/servlet automatically print to non local printer
adding a page link to a js print page
Printing Crystal Rpt on client side in ASP pg
printing
call Javascript function from jsp page.
IntelliJ Java IDE