Results 1 to 6 of 6

Thread: JavaScript: FUNCTION

  1. #1
    Join Date
    Nov 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question JavaScript: FUNCTION

    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!

  2. #2
    Join Date
    Sep 2004
    Location
    Little Falls, Roodepoort, South Africa
    Posts
    421
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    align="left"

    rgds,Simonf

  3. #3
    Join Date
    Nov 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy

    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!

  4. #4
    Join Date
    Sep 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    this should work:

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

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Code:
    add.style.textAlign = 'right';
    Yes.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  6. #6
    Join Date
    Sep 2005
    Posts
    882
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    Where did you dig this thread up at?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •