+ 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 Antworten
+ 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 🤔