Question about window.print()

G

Guest

Hello All,

I am dumping the HTML content of a page using document.write. As part of
this HTML code, I have an input "Print" button which does nothing but calling
the window.print

Window.print is working in the firefox browser by displaying the printer
window where user all he has to do is click on "Print" However, when I click
on the print button from Internet Explorer 7.0 nothing happens. It does not
get me the printer window.

What do you folks think is the problem? Do I need to modify any security
settings in IE7.0?

Thanks a lot!!
 
G

Guest

Hello All,

I am dumping the HTML content of a page using document.write. As part of
this HTML code, I have an input "Print" button which does nothing but calling
the window.print

Window.print is working in the firefox browser by displaying the printer
window where user all he has to do is click on "Print" However, when I click
on the print button from Internet Explorer 7.0 nothing happens. It does not
get me the printer window.

What do you folks think is the problem? Do I need to modify any security
settings in IE7.0?

Thanks a lot!!

I think you have a problem in the code. window.print() should work in
IE

Just try it

<a href="javascript:window.print()">Print</a>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top