Problem with a tag

Hi, I am making the random quote machine, one of the projects of Front End Development Libraries. This app has a tweet button on clicking which opens your twitter and creates a new tweet. The href seems to work when put directly in the url in the browser but doesn’t when I click on the button.

Link to the application

it is a thing with twitter, they don’t allow the tweet to come from an iframe or embed, like it is for codepen. You can right click on the link and open on a new tab. Maybe if you add target="_blank" to the anchor element it should open on a new tab on its own

The anchor element do have target="__blank" attribute.

just twitter being weird then

1 Like

target=__top does work but not __blank

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.