I've been trying to make a button, and I've been trying to make it so that when you click it, it will open a website. I use the "X-Frame-Options: ALLOW-FROM" after href , and I'm trying to connect YouTube as an example, but when I run the code, it says that Google Chrome OS cannot open this page. This is my code.
<a href=X-Frame-Options: ALLOW-FROM "https://www.youtube.com/"> Example </a>
I'm not sure what I've done wrong, and it doesn't even work when I run it with https://www.example.com/
CodePudding user response:
Your href is not formatted correctly. It should look like the following:
<a href="https://www.youtube.com/" target="_blank">This is a link</a>