divName.innerHTML += "some new text" + "<br/>"; This should work
Pascal >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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206183 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=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

