javascript - jQuery: Binding same event to window and another element -



javascript - jQuery: Binding same event to window and another element -

how bind same event window , on element @ 1 go. tried this, not work me:

$('window, #someid').bind('click', dosomething);

$('#someid').add(window).bind('click', dosomething);

should it.

javascript jquery bind

Comments

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -

ms access - C# - Using OleDbParameter on table name -