FireFox and \t

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • McKirahan

    FireFox and \t

    Doesn't FireFox support "\t" (tab)?

    <script type="text/javascript">
    alert("1 2\n3 4\n5\t6");
    </script>

    The above is not displayed correctly under FF.

    Is there a work around? Thanks in advance.


  • Martin Honnen

    #2
    Re: FireFox and \t



    McKirahan wrote:
    [color=blue]
    > Doesn't FireFox support "\t" (tab)?[/color]

    Yes, it recognizes that in a string literal.
    [color=blue]
    > alert("1 2\n3 4\n5\t6");[/color]

    Unfortunately white space in alerts is collapsed, that is known
    bug/problem in Firefox.

    --

    Martin Honnen

    Comment

    Working...