PDA

View Full Version : JavaScript: FUNCTION



Sue M.
11-29-2004, 07:29 PM
In the following code, how do I contol how the quoted phrase prints in the box? The default is: CENTER And I want it to be LEFT JUSTIFIED.


function aen()
{
add.value="Sue M\nHello there, wanna read what I have to say? \n \n And, further more......\n"
add.style.height=120
add.style.width=260
}

Thanks!

simonf
11-30-2004, 02:11 AM
align="left"

rgds,Simonf ;)

Sue M.
11-30-2004, 07:23 PM
Anyone have a clue where to put the align="left" ? ? ? ?

Tried: add.style.align="left" (one of many different tries) No error (This is good!) Doesn't work. (This is NOT good!)

HELP!

super-iy
09-12-2006, 06:08 PM
this should work:

newRow.cells[2].style.textAlign = 'right'

Twey
09-12-2006, 07:03 PM
add.style.textAlign = 'right';Yes.

blm126
09-12-2006, 08:57 PM
Where did you dig this thread up at?