【发布时间】:2013-02-03 23:46:28
【问题描述】:
我在基于 Blogger 的website 上使用自定义 Tumblr 分享按钮,我希望分享屏幕在弹出窗口中打开。现在它会在新标签页中打开。
有人可以告诉我怎么做吗?
<div class='tumblr-button'>
<script>
var strPostUrl = "<data:post.url/>";
var strPostTitle = '<data:post.title/>';
var strNewUrl = strPostUrl.replace("http://","");
var strNewTitle = strPostTitle.replace(/"/g, '"');
document.write("<a href='http://www.tumblr.com/share/link?url="+strNewUrl+"&name="+strNewTitle+"' target='_new'><img src='http://platform.tumblr.com/v1/share_1.png'/></a>");
</script>
</div>
【问题讨论】:
-
我想这就是你要找的东西:stackoverflow.com/questions/726761/…
标签: javascript popup window blogger tumblr