FEW LINES OF MESSAGE

A

alec

I am using standard window.alert("my message") to inform visitor to my web
site. I have encountered one problem though. Since my message is rather long,
I would like it to appear in a few lines rather than one very long one. Is it
possible to do?
Thank you in advance for your help and suggestions.
 
J

Jon Spivey

Hi Alec,
\n is the symbol for new line, eg
alert('some text \nnext line')

No space between \n and the following text
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top