Help with the Tweet Button link?

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:

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

1 Like

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.

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

any idea how you would go about doing that?

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

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

1 Like