Vote count:
0
I would like to know if there is set of codes that automatically triggers enter key without pressing it.
Take a look in my codes:
Javascript: function printMe() { window.print(); window.onfocus=function(){ window.close();} }
HTML:
<input type="button" value="Print" onclick="printMe()">
What I want to happen is, after clicking the button, it will print automatically and does not prompting to Printing Box anymore. The reason why i ask how to trigger enter key automatically is because whenever i go to Print Box, the "Print" button is on focus. Therefore, if i have a code that the enter key triggers automatically, the user will not press the "Print" button anymore, and it will automatically print. Hoping for your help guys. Thank you so much in advance!
asked 30 secs ago
Triggering Enter key in Print Box
Aucun commentaire:
Enregistrer un commentaire