+ 3
Is it possible to make the alert message inside the dialogue box align to center? Sorry for the noob question
2 Réponses
+ 9
That can't be implemented into the alert message. HTML5 doesn't support dialogue boxes like this; only webpages you can use align and such properties.
+ 7
You can use 'tab' characters (\t) to move the text over, e.g. try alert("\t\t\tcenter"); but it's not very satisfactory. There is no 'center' character.