title: How to develop a Slack share button in HTML with onclick?
body: <p>I want to add on my website a Slack share button that would allow users to send a link in the team or the channel of their choice.</p>
  
  <p>For example, I have tags that link to web pages (of my projects) with span inside to click on the sharing "buttons" (which are actually svg) thanks to "onclick".</p>
  
  <pre><code>&lt;a href="…"&gt;
    &lt;img src="…"/&gt;
      &lt;h2&gt;Name of the project&lt;/h2&gt;
  
        &lt;span class="facebook" onclick="window.open('http://www.facebook.com/sharer.php?u=https://www.nameoftheproject.com'); return false"&gt;
          &lt;svg&gt;…&lt;/svg&gt; &lt;!-- Facebook icon in svg --&gt;
        &lt;/span&gt;
  
        &lt;span class="twitter" onclick="window.open('https://twitter.com/share?url=https://www.nameoftheproject.com'); return false"&gt;
          &lt;svg&gt;…&lt;/svg&gt; &lt;!-- Twitter icon in svg --&gt;
        &lt;/span&gt;
  
        &lt;span class="linkedin" onclick="window.open('http://www.linkedin.com/shareArticle?mini=true&amp;amp;url=https://www.nameoftheproject.com'); return false"&gt;
          &lt;svg&gt;…&lt;/svg&gt; &lt;!-- LinkedIn icon in svg --&gt;
        &lt;/span&gt;
  
  
  
        &lt;span class="slack" onclick="window.open('…'); return false"&gt;
          &lt;svg&gt;…&lt;/svg&gt; &lt;!-- Slack icon in svg --&gt;
        &lt;/span&gt;
  
  &lt;/a&gt;
  </code></pre>
  
  <p>It's the same principle as Muzli if you know.</p>
  
  <p>So I have difficulty understanding how to proceed with Slack.
  if you can help me that would be great, thank you.</p>
  
  <p>Thibaut.</p>