Help with the Tweet Button link?

Help with the Tweet Button link?
0

#1

Hello, I am almost finished with my Random Quote Generator but I am having trouble deciding where (and how?) to put the twitter link in my JavaScript.

Feedback is also appreciated!

Link to my pen:


#2

If you’re using a <button> (instead of an <a>), you can try using window.open().


#3

hmm I could have sworn I tried that but it worked! thank you! except one small problem, there are

tags included in the tweet that I have no idea where they came from.


#4

Maybe they’re part of what you get from the API. Try using the text directly from your page.


#5

any idea how you would go about doing that?


#6

You’re using jQuery right? Surely there’s some function that lets you get text from your page.


#7

once again I got it, lol. thanks for the help!