+ 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 Antwoorden
+ 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 š¤