0
Help me syntax error after opening website from āhindiā
5 Answers
+ 1
Your code works fine if ran from the app. When I click the link there is no error and the link sends me to w3schools's homepage.
However, if I run the code from Sololearn.com playground, I get www.w3schools.com refused to connect
To fix this issue. add the following attributes
target="_blank" rel="noopener noreferrer"
<a href="https://www.w3schools.com" target="_blank" rel="noopener noreferrer">
0
Everything worked with out error. What syntax error did you see?
0
Run code click on hindi after website opened you see console syntax error
0
Chris Coder thank you, if i use my code in diffrent app like visual studio code, spck editor, koder still need to edit and add ?
Target=ā_blankā rel=ānoopener noreferrerā>
0
It is always best to include the attributes. You can find a list of target and rel attribute values here for more info
https://www.w3schools.com/tags/att_a_target.asp
https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel