Triggering a keystroke after the page loads?

Good afternoon. Help to implement this script. Thanks for the help.

The point is that if you press the key combination Ctrl+P you will be prompted to print the page in the form in which it is. Need script in jquery which will wait the page load and then automatically goes to Ctrl+P ie will prompt you to print the page. How is this implemented ? Thanks for the help.
June 5th 19 at 22:00
1 answer
June 5th 19 at 22:02
Solution
<script type="text/javascript">
 window.onload = function() { window.print(); }
</script>

Find more questions by tags jQuery