Quote machine opens to many tabs when you hit share?


I found something wrong with my quote machine… the more you press for a new quote the more tabs that open when you share it.

Move the following code outside the newQuote function:

$("#tweetThis").click(function() { 
    window.open('https://twitter.com/intent/tweet?&text=' + currentQuote + " -Vincent van Gogh");
1 Like