jquery mouse down event override. -
if have window , assign event attempts on right so.
$( win ).mousedown( function ( e ) { alert( 1 ) } ) $( win ).mousedown( function ( e ) { alert( 2 ) } )
my second event 1 fires ( alert 2 ) , expect. though when move window child window(window.open) first event copped not second.
example: make new window called newbrowserwindow then
newbrowserwindow.document.body.appendchild( win );// copy in div
once click on window in new browser window alert 1 not 2?
just did simple .unbind( 'mousedown' ); before re assigning new event.
Comments
Post a Comment