How do I get extra spaces with the write command?

I am sure this is simple, but can someone tell me how to get more than 1 space to print out using the write command? I know how to get at least 1 space in between various outputs by using document.write('a','','b'), but every time I try to put more than 1 space in, I always just get 1 space.

Is there a way to put 2 to 3 spacing in front of the printed out string?
Something like document.write('','', 'b')
and would display: __b (where each underscore is a space)

Thx

Tony

Comments

  • Try using a non-breakable space character  


    : I am sure this is simple, but can someone tell me how to get more than 1 space to print out using the write command? I know how to get at least 1 space in between various outputs by using document.write('a','','b'), but every time I try to put more than 1 space in, I always just get 1 space.
    :
    : Is there a way to put 2 to 3 spacing in front of the printed out string?
    : Something like document.write('','', 'b')
    : and would display: __b (where each underscore is a space)
    :
    : Thx
    :
    : Tony
    :
    :

  • : Try using a non-breakable space character  
    like this

    document.write('    ');
    :
    :
    : : I am sure this is simple, but can someone tell me how to get more than 1 space to print out using the write command? I know how to get at least 1 space in between various outputs by using document.write('a','','b'), but every time I try to put more than 1 space in, I always just get 1 space.
    : :
    : : Is there a way to put 2 to 3 spacing in front of the printed out string?
    : : Something like document.write('','', 'b')
    : : and would display: __b (where each underscore is a space)
    : :
    : : Thx
    : :
    : : Tony
    : :
    : :
    :
    :

  • : : Try using a non-breakable space character  
    : like this
    :
    : document.write('    ');
    : :

    Some more helpful ones are
    " = "
    < = <
    > = >
    [hr]
    [blue]Visual Basic[/blue]
    ~[b]Andy;-)[/b]~[italic]SuperJoe30:-([/italic]~
    My Website:
    http://www.geocties.com/joesarcade :-(
    [red]JavaScript[/red]
    [hr]

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories