0
I keep getting unexpected syntaxerror token < line 2
alert("This is an alert box!"); <html> <head> <title></title> <script type="text/javascript"> Alert("this is an alertbox!"); </script> </head> <body> </body> </html>
4 odpowiedzi
+ 1
all the JavaScript program should be inside <script> tag.
second thing is that alert must be in lowercase.
0
well by the looks of it you're trying to put html code in the javascript part of a web code
html and js each go in their own respective sections
0
So how should I put it
0
Alright thank you!