Re: formatting text in JavaScript popup boxes
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: formatting text in JavaScript popup boxes

From: [on] <switchable@gmail.com>
Date: Fri Apr 07 2006 - 14:08:26 CEST

korund@hotmail.com wrote:
> We can use special characters ('\n') to add line breaks in text in
> JavaScript popup Alert boxes.
>
> there is also few additional special characters:
>
> \' single quote
> \" double quote
> \& ampersand
> \\ backslash
> \n new line
> \r carriage return
> \t tab
> \b backspace
> \f form feed
>
> Is there also additional characters for more reach formatting? (bold
> text, etc)? Need we put "\n" inside quotations?
> Is there some Javascript popup Alert box text formatter, to format text
> from GUI, more handy way?

If you want graphics either open a window, or display a HTML element on
top of everything else on the page.

(I myself would use the last one)
Received on Mon May 1 04:47:52 2006