"Click "Ctrl+C" programmatically on load"
Bootstrap 3.3.0 Snippet by RajeshPatadiya

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ---------->
.f1 { width: 60px; height: 60px; line-height: 60px; text-align: center; border: 2px solid black; margin: 4px; }
$("body").keydown(function(e) { var code = (e.keyCode ? e.keyCode : e.which); if (code == 67) { if (e.ctrlKey) { alert("Ctrl+C was pressed!!"); } } }); var e = jQuery.Event("keydown"); e.which = 67; // 'C' key code value e.ctrlKey = true; $("body").trigger(e);

Related: See More


Questions / Comments: