How can we style JavaScript | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
+ 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