I wanna use my browser's save as function. How can i trigger CTRL
+S
via button in javascript. Is it possible ? i have tried this
$("#Save").click(function() {
var e = $.Event( "keydown", { keyCode: 115, ctrlKey:true} );
$("body").trigger(e);
});
Aucun commentaire:
Enregistrer un commentaire