Faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

4 of 7 people (57%) answered Yes
Recently 4 of 7 people (57%) answered Yes

Entry

How do I code a 1 line spacing with a enter keystroke instead of 2 lines(not shift+enter)?

Sep 3rd, 2007 15:52
Dave Clark, Derek Ziola,


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Derek,
     Not sure to what specific situation you're referring.  However, 
JavaScript "\n" and HTML "<br>" are equivalent to single-line 
spacing.  JavaScript "\n\n" and HTML "<p>" are equivalent to double-
line spacing.
Take care,
Dave Clark
www.DaveClarkConsulting.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~