Syntax error with links | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

Syntax error with links

Using default web code bit, the only thing I added is <a href=ā€œhttps://www.google.comā€>google</a>, and a javascript output box at the bottom says ā€œsyntax errorā€ when I click the link, even though it directs me to Google. Anyone know why?

6th Jan 2020, 11:39 PM
buckwillie05
buckwillie05 - avatar
4 Respostas
7th Jan 2020, 2:31 PM
buckwillie05
buckwillie05 - avatar
+ 1
chernxbyl42069 Share your code and help get rid of the doubts about what went wrong. These guys can help you much better if they can see your code. So, share the code?
7th Jan 2020, 6:30 AM
Ipang
0
怌ļ¼Øļ¼”ļ¼°ļ¼°ļ¼¹ ļ¼“ļ¼Æ ļ¼Øļ¼„ļ¼¬ļ¼°ć€ the quotation marks I used were indeed standard and changing them did not help. thank you for the answer though
7th Jan 2020, 3:22 AM
buckwillie05
buckwillie05 - avatar
0
Did you add it to the right tab? Web codes have tree code tab: one for html, one for css and a last one for js... It sounds like if you add this link in the js tab and not in the html tab ^^ Only css or js could be written in the html tab if you enclose them in respectively <style></style> and <script></script> tags ;)
7th Jan 2020, 5:21 AM
visph
visph - avatar