I have a Firefox ad-dons that activate by pressing F8.Now i want it trigger by when user focus to specific input box.other wise when input box get focused generate F8 key strocks.
$("#b_new").focusin(function () {
// Create a new jQuery.Event object with specified event properties.
var e = jQuery.Event("keydown", { keyCode: 119 });
// trigger an artificial keydown event with keyCode 119
jQuery("body").trigger( e );
});
here i got something but it does not affect to browser. i guess it's because jQuery("body").trigger( e );
do i make it as jQuery("browser_toolbar").trigger( e );
how to dot it?
pls, help me to recover this problem....Thanks in advanced.....