Twitter button not working in Random Quote Machine

Twitter button not working in Random Quote Machine
0

#1

Hello!
I am working on Random Quote Machine and the twitter button that i have made is not working. I have given link also but i dont know whats the problem.
This is the code:- https://codepen.io/karanatwal/pen/PKjPqy


#3

I agree with @SkyC
But if you want a direct answer for why it isnt working as you have it now

window.open=("https://www.twitter.com");

you need to remove the equal sign

window.open("https://www.twitter.com");

and it will only go after you click next quote at least once.


#4

thanks @SkyC and @JashuHB…the problem is solved.