0
how do i add a welcoming message with a font and all only using js at the start of the game?
the hangman project https://code.sololearn.com/WCvDAxCzbbkw/?ref=app
9 Answers
+ 3
You can create html and set css via js.
+ 2
You can create the html element using javascript and display it with html (and get input using js and html)
+ 2
You cannot much style the prompt() or alert().
That is why I suggested using html (via javascript)
0
It needs to be in the console pop-out
0
What did you mean by "console pop-out"?
0
Ipang the game's splash screen
0
I think you can create a <div>, style the <div> and its content using CSS as you see fit. Then just set <div> CSS display to 'none'. When you want it to show up, you can adjust the <div> CSS display to 'block' in order to show the <div> using JS.
Easier to update/maintain this way rather than using JS to create the <div> and its contents.
0
Yeah but I can only use js.no html or css
0
Let me change the question-how do I make a figlet Header in the splash screen?