+ 2
Text formatting in JS alerts
How can I print a value (defined by Users input) in an alert strong, italic and red?
2 odpowiedzi
0
You should be able to don't forget you can add "<h1>" and "<p>" tags.
0
but this is not working.
What should I change, if I want to print the Users name bold and italic?
alert ("Hello " + document.getElementById('username').value +"!")