How can i successfully insert javascript in html+css...?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can i successfully insert javascript in html+css...??

I created a simple code with html and css. I gave it different colors using 'class' and 'identity'..But as soon as i inserted a javascript to create an 'alert box' and then opened it in chrome....it had lost all its colrs..it was black and white...and an alert box was there at the start...plz help

28th Mar 2017, 10:23 AM
poonam roy
poonam roy - avatar
4 Answers
0
if you closed alert it stays same? Also, you tryed to clear your browser cache and history? where you inserted js, you closed tags and everything?
28th Mar 2017, 11:14 AM
Ivan Kerepčić
Ivan Kerepčić - avatar
0
yes...i checked my coding many times....and also cleaned my browser's cache and history on your reply....but still it is the same....
28th Mar 2017, 12:54 PM
poonam roy
poonam roy - avatar
0
i inserted js externally....and i tried by putting the link in the head and then in the body....but when i opened it was the alert box.....after closing the alert box....my page appeared as i coded but without any effect by css....
28th Mar 2017, 12:57 PM
poonam roy
poonam roy - avatar
0
now it is working......
29th Mar 2017, 6:18 AM
poonam roy
poonam roy - avatar