+ 10
[URGENT] if you click on a link, why does âSyntax Errorâ show?
In the Code Playground if you click on a link, why does âSyntax Errorâ show? Thank you in advance
10 Answers
+ 2
The page reloaded and probaly exited your page . Thats how it works. (the page reloads if you go into the control center, and go off the app)
Wait, it runs the code if you send a link that is a existing code with errors that should say null is not a object because it is in the sololearn website. (shows warnings too)
Then, it would run that link on the sololearn website but only shows output of link then errors some stuff for buttons then results Syntax Error!
I think you need a server to prevent that,
+ 5
AJ Anant moses
https://code.sololearn.com/WjeQsUNg3i22/?ref=app
(basically any code with <a href=âhttps://example.comâ>Text</a>
+ 5
moses if you liked it you can upvote
+ 5
Abhay moses AJ Anant every link
also i had the same mistake here:
https://code.sololearn.com/WwyRTP4O4737/?ref=app
+ 2
Which link you are talking about? On which link you get Syntax Error? There is just a type error I see which is caused because script is loaded before body
+ 1
CodeWarrior đŽđđđđđđđđđđ Can you share your Code?
+ 1
i tried it and it worked and by the way i liked the code i had a similar idea!
+ 1
cool then
+ 1
ok
0
please show us a link to your code so that we can have an idea of what you are talking about.