How to pop-up print dialog box using Javascript?

You can use:

window.print();

The print() method prints the contents of the current window. It opens the Print Dialog Box, which lets the user to select preferred printing options.

Advertisements

One comment

  1. Hi There,

    Thank you for making your blogs an embodiment of perfection and simplicity. You make everything so easy to follow.
    Hello, trying to find all paths in matrix, the problem is with the left turn but as for now, after working with a debugger I found that the right call doesn’t registered pass the positions i2 j1
    So, when it was i2 j0 it went right in position with the marked call in the picture but on the second time it needed to proceed right it fails to do so, but it is odd since it seems like the call is registered, just seems like j is not increased to 2 for some reason. This is not an assignment BTW. Thank you.
    Can’t attach a picture of it unfortunately…
    Further, sometimes it’s not possible to make any design changes because of the way in which application code is written. It is suggested that first other tuning techniques should be applied and if still there is a need of increasing the performance numbers, tuning should be done.
    Excellent tutorials – very easy to understand with all the details. I hope you will continue to provide more such tutorials.

    Thanks and Regards,
    Karl

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s