var follow = document.getElementById('follow-elem'); var d = dialog({ align: 'bottom left', content: 'hello world' }); d.show(follow);