function Bla(){ // bla bla code } $(window.parent.document).on('click', '#blablaId', Bla); ... $(window.parent.document).off('click', '#blablaId', Bla);