|
#1
| ||||
| ||||
| special characters in a javascript alert?
Does anyone know how to put special characters in a javascript alert? Im trying to make a french js alert.... alert("Veuillez inscrire votre prénom..") thanks for the help..... |
|
#2
| |||
| |||
|
Use unicode, and precede the code with \u, like this: 'Veuillez inscrire votre pr'+\u00E9+'nom' Use this to find the right codes: http://www.unicode.org/charts/ |
|
#3
| |||
| |||
|
If you want to dispaly special characters of german in javascript alert or innerHtml or InnerText then fomat as below For Example: you want to display alert(''Bitte überprüfen Sie die Eingabe''); instead of ü use \u00FC alert('Bitte \u00FCberpr\u00FCfen Sie die Eingabe'); Use this to find the right codes for German Characters: http://www.unicode.org/charts/PDF/U0080.pdf |
![]() |
| Bookmarks |
| Thread Tools | |
|
|