By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,984 Members | 1,386 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,984 IT Pros & Developers. It's quick & easy.

Question about window.print()

P: n/a
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!!
May 30 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On May 30, 11:28 pm, Diffident <Diffid...@discussions.microsoft.com>
wrote:
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>

May 31 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.