faqts : Computers : Programming : Languages : JavaScript : Browser Settings

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

5 of 6 people (83%) answered Yes
Recently 2 of 2 people (100%) answered Yes

Entry

How can I find out the (platform specific) line separator?

May 1st, 2000 05:36
Martin Honnen,


Client side JavaScript doesn't have a property for that but Java 
provides one which NN3+ can check:
  var lineSeparator =
    java.lang.System.getProperty('line.separator');
This gives
  '\r\n'
on a win platform.