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