yeah but i want to bind this event only when the window is open, so if user press esc in the side it will not disable this key when no need to
got me? Gilles (Webunity) wrote: > > > jQuery(document).keypress(function(ev) { > if (ev.which == 27) { .. action .. }; > }); > > Which = jQuery assigned crossbrowser keycode. > > > -- View this message in context: http://www.nabble.com/Thickbox-3-%2B-esc-to-close-window-tf4141427s15494.html#a11782142 Sent from the JQuery mailing list archive at Nabble.com.