I am doing the same thing.
For example,
My onclick function
function twitterShareClick() {
twttr.events.bind(‘tweet’, function (event) {
alert(‘testing’);
});
window.open(“https://twitter.com/intent/tweet?url=” + myURL+ “&text=myText”, “Twitter”, “status = 1, left = 430, top = 270, height = 550, width = 420, resizable = 0”);
}
I don’t see any problem with this code