|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Popup window.
All,
Really stupid question, but I am new at using Javascript. I have an alert window set, however I need to format the text to be displayed. How do I start a new line, so that text will read like the following: - Error entering your password. Please re-enter. Not bothered about alignment, just need to have seperate lines, at minute, script reads - Quote:
All help appreciated. |
|
#2
|
|||
|
|||
|
JavaScript uses the backslash to signify control characters. You need a new line, for which the control character is '\n', so try:
Quote:
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > Popup window. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|