homepage Welcome to WebmasterWorld Guest from 23.23.9.5
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
conescutive whitespace in an alert box
tores

5+ Year Member



 
Msg#: 3505 posted 11:47 am on Apr 6, 2005 (gmt 0)

Hi

How can I get more than one consecutive whitespace in an alert box. I've tried with \t and multiple spaces after one another, but in the alert-box it all renders to just one space...
I'm running Firefox.

regards tores

 

globay

10+ Year Member



 
Msg#: 3505 posted 11:55 am on Apr 6, 2005 (gmt 0)

Use ' ' Which is for new blank space I think.

tores

5+ Year Member



 
Msg#: 3505 posted 1:18 pm on Apr 6, 2005 (gmt 0)

Unfortunatly html-tags doesn't render in alert-boxes, so ' ' won't do it.

regards tores

SpaceFrog

5+ Year Member



 
Msg#: 3505 posted 1:38 pm on Apr 6, 2005 (gmt 0)

what browser are you testing with?

alert("hello world")
works perfectly on my side

except for it does not render properly on forurm ...

[edited by: SpaceFrog at 2:12 pm (utc) on April 6, 2005]

Rambo Tribble

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3505 posted 1:55 pm on Apr 6, 2005 (gmt 0)

I don't think you are going to find what you want for Moz/FF. Might I suggest the kludge: " - "?

rocknbil

WebmasterWorld Senior Member rocknbil us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3505 posted 5:19 pm on Apr 6, 2005 (gmt 0)

  is a non-breaking line space, and I have found what Rambo says to be the case - you can format your alerts pretty will in MSIE but not the Mozillas.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved