How to execute keybord shortcut CTRL + P by clicking a link using jquery

41.5k views Asked by At

I want to print a page to do so I have to click CTRL + P, so I would like to make a link to ease the process. Any help is appreciated!

1

There are 1 answers

2
Rory McCrossan On BEST ANSWER

You don't need to simulate a CTRL + P keypress to print the window - you can just call window.print() when required instead.