+ 6

Can i style JavaScript output?

x= sonday document.write(x); output " sonday"

23rd Jul 2018, 4:23 PM
Omar Khalil Bakhsh
Omar Khalil Bakhsh - avatar
2 Antworten
+ 2
Yes, you can. document.write() just adds text to your HTML page, so you can style it by using HTML and CSS, but in my opinion, it is easier to use jQuery to add elements to your page.
23rd Jul 2018, 6:55 PM
Moritz Vogel
Moritz Vogel - avatar