Custombox.modal.closeAll(); var modal = new Custombox.modal({ content: { effect: 'fadein', target: '/graphics/5/modal?i=1' } }); modal.open();