Results 1 to 6 of 6

Thread: spaces in JS HOW

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 2001
    Posts
    21

    spaces in JS HOW

    Hello

    how can i print space

    for example
    if i want
    document.write( " ") // to print space
    but by the statment above i dont get the space

    so how i have space in document

    ?

    thanks

  2. #2
    Addicted Member
    Join Date
    Nov 2001
    Location
    Yewston, Texis
    Posts
    240
    That's off topic here.

    The appropriate group is XML, HTML, Javascript, Web and CGI.

    That said, I might be able to help. It's not totally clear what your problem is, but it sounds like might have a problem of spacing which can be solved with:
    document.write(" ")

    cudabean

  3. #3
    Addicted Member
    Join Date
    Nov 2001
    Location
    Yewston, Texis
    Posts
    240
    Oops! That didn't show up right.

    try again:
    document.write("& n b s p ;") without the spaces

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Dec 2001
    Posts
    21
    hi again ..
    sorry for the un understood question ..
    all what i am looking for is :
    how can i creat spaces bettwen two charachters??
    for example :
    i would like to print the following ..
    (space) m
    m (space) m
    hope u can get my point ..
    thanx...........

  5. #5
    Addicted Member
    Join Date
    Nov 2001
    Location
    Yewston, Texis
    Posts
    240
    <script>
    document.write("m m");
    </script>

    worked for me.

  6. #6
    Addicted Member
    Join Date
    Nov 2001
    Location
    Yewston, Texis
    Posts
    240
    The following also worked:

    <script>
    document.write("m");
    document.write(" ");
    document.write("m");
    </script>

    I get
    m m

    cudabean

Posting Permissions

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



Click Here to Expand Forum to Full Width