Couple questions about Twitch.tv project

or just use the link like https://www.twitch.tv/ + channel name you want to pass on.
example: https://www.twitch.tv/habathcx

1 Like

Okay thanks ill use that. I did try that before, but you need to open it in a new tab to work. You cant just click…

if you use the link method it doesn’t need a ajax. just wrap the a tag around the name
take a look of my code.

1 Like

Yeah i did that, just having the issue with it requiring you to open it in a new tab.

what do you mean. if you want to open it in a new tab just put target="_blank" in a tag.
like this:

<a href="https://www.w3schools.com" target="_blank">Visit W3Schools</a>  
2 Likes

Thanks, that worked. I cant believe i didn’t think of that :man_facepalming:

np. you should take a look at w3schools. it wills help you.

1 Like

Yeah i do use w3 schools a lot. Its been a long time since i have used target="_blank" so i forgot about it. I actually face palmed when you told me lol.

It’s a CodePen necessity. It’s also good practice to use target="_blank. Were you able to get the client ID?

Check the getting started section from the menu bar.

returned url property by the success function is the link to the stream

Okay thanks, ill keep that in mind.