+ 1
[SOLVED] Script is not working.
Iâve tried linking it externally too, but I keep getting a blank screen. I donât know why. https://code.sololearn.com/WF4QKDS5wCJ2/?ref=app
9 Answers
+ 4
You used alert("<h2 align=" center">..... "), you've and enclose all in single quotes, not double quotes: alert('<h2 align=" center">.....' )
+ 11
Sorry I am late... I was out today so I disnât see the mention. Seems like this is solved :)
+ 3
You forgot a document.write(), and in alerts and other elements outputting HTML, you've to enclose all in single quotes if you use double quotes for HTML, and vice versa. Still to work on, but now outputs
+ 3
Also, you try and use "plain" HTML styling for alert boxes, which is not allowed. Styling an alert box is an harder work: https://stackoverflow.com/questions/7853130/how-to-change-the-style-of-alert-box
+ 3
Please read back my first post âșïž
+ 2
well i found the other document.write() but I canât find the other differences. Double quotation marks have been used everywhere.
+ 1
I canât seem to find what you changed in the code. Itâs exactly the same, except that itâs working now. Paolo De Nictolis đ€