I want to trigger the ctrl+0
in order to reset the browser zoom. If I do it manually and press ctrl+0
then it resets the browser zoom.
Here is the code that I've tried:
$('#test').click(function() {
e = $.Event("keypress");
e.which = 48;
e.ctrlKey = true;
$(window).trigger(e);
});
but it doesn't work. I tried to trigger the event on $(document)
as-well but still no success.
Any idea how can I do that?
Black Cat Superstitions
Folk Lore