divName.innerText = divName.innerText + "some new text" + "\n" + "abc"

-----Original Message-----
From: Mark A Kruger [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 10, 2005 10:55 AM
To: CF-Talk
Subject: OT: Javascript question...


I want to manipulate the "innerText" property of a  <div> tag. It works fine
except that I can't seem to put in a linefeed or break. I tried all the
following without success. Does anyone know how to get a linebreak in there?

-mark



----------------------------------------------------------------------------
------------------------
divName.innerText = divName.innerText + "some new text" + "<br/>";

divName.innerText = divName.innerText + "some new text" + /n;

divName.innerText = divName.innerText + "some new text" + chr(10);

divName.innerText = divName.innerText + "some new text" + chr(13);
----------------------------------------------------------------------------
-----------------------




Mark A. Kruger, CFG, MCSE
www.cfwebtools.com
www.necfug.com
http://mkruger.cfwebtools.com






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206194
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to