How can we style JavaScript | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can we style JavaScript

Addition of css to JavaScript.. How to add css to JavaScript... For example:how to style JavaScript's alert box.

29th Jan 2019, 12:55 AM
Fadipe Oluwaferanmi Charles
Fadipe Oluwaferanmi Charles - avatar
3 Answers
+ 3
You can change the CSS by getting an element(document.getElementById(“name”).style.) and adding what you want to change. For example, changing the color to red, would be as simple as adding color = “red”; to the end
29th Jan 2019, 3:14 AM
Jax
Jax - avatar
+ 1
Can you please explain your question more?
29th Jan 2019, 3:00 AM
Rowsej
Rowsej - avatar
+ 1
Maybe this might help (the second page): https://www.sololearn.com/learn/JavaScript/2754/
29th Jan 2019, 3:18 AM
Rowsej
Rowsej - avatar