防止自动关闭Facebook共享弹出窗口

Naj*_*aju 5 html javascript jquery facebook

我使用下面提到的代码将我的页面分享到Facebook.

我的问题是,当我点击分享按钮,它正确分享我的页面,但它关闭弹出窗口,但我不想关闭弹出窗口.请告诉我.

<html>
<head>
<title>fb</title>

</head>
<body>

<a href="#" 
  onclick="
    window.open(
      'https://www.facebook.com/sharer/sharer.php?u=http://google.com', 
      'facebook-share-dialog', 
      'width=626,height=436'); 
    return false;">
  Share on Facebook
</a>

</body>
</html>
Run Code Online (Sandbox Code Playgroud)