javascript:q=location.href;p=document.title;void(open('http://example.page/links/bookmarklet_new?
link%5Burl%5D='+encodeURIComponent(q)+'&link%5Btitle%5D='+encodeURIComponent(p),'Page','toolbar=no,width=700,height=350'));
Im using Bookmarklet script like above. But in case if user is not logged he is redirected to root_path. But then I would like to scroll or center page to login form. I tried override styles. But how to check when page is open in popup window?