0
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'));
我正在使用上面的Bookmarklet脚本。但如果用户没有登录,他会被重定向到root_path。但后来我想滚动或中心页面登录窗体。我尝试了重写样式。但是如何检查页面在弹出窗口中打开的时间?如何在打开书签后在弹出窗口中居中页面?