I’m thinking that I could build an anchor tag like this:
anchor_instance.onclick = null; anchor_instance.href = "https://twitter.com/share"; anchor_instance.click();
The above works, but not like I want it to. Instead of popping up a tweet-window, it loads a tweet-page that replaces the page of my application. Furthermore, the data-url value is not carried into the tweet window.
Humbly, I would suggest that a technique like this should be used by default, if the tweet-count is not needed.