Re: Line break in alert

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Trevor L. said the following on 10/20/2006 8:10 PM:
Evertjan. wrote:
Randy Webb wrote on 20 okt 2006 in microsoft.public.scripting.jscript:

Evertjan. said the following on 10/20/2006 3:47 AM:
Trevor L. wrote on 20 okt 2006 in
microsoft.public.scripting.jscript:

What is the line break character

/n

I have better results with \n :)

You ought to. ;-{

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Thnaks to both

As I said, a mental block.

I thought I needed 
 (or similar) but this just displayed as is

Interestingly, 
 works in this context
<input type="button" value="Play/Stop&#10;Music" onclick="playSound()"/>

Hence I have to remember when to use
<br /> (HTML)
\n (JScript)
&#10; (value of input tags and elsewhere?)

Make a dummy page that keeps all your "shortcut" stuff and make it the default home page for your browser. Then you always have it at the click of the Home button :)

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
.



Relevant Pages