Question

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

    Question

    When using the document.write command to dynamically cretae a new html
    page .. how should I use the "" charcters.

    e.g. for font size="2"

    As the attributes appear within " "for the purposes of the documnet.write
    bit ...it just gives me errors.?

    many thanks




  • Ivan Marsh

    #2
    Re: Question

    On Tue, 02 Mar 2004 23:04:41 +0000, Evil Monkey wrote:
    [color=blue]
    > When using the document.write command to dynamically cretae a new html
    > page .. how should I use the "" charcters.
    >
    > e.g. for font size="2"
    >
    > As the attributes appear within " "for the purposes of the documnet.write
    > bit ...it just gives me errors.?
    >
    > many thanks[/color]

    document.write( "<FONT SIZE='2'>");

    Works just fine.

    --
    i.m.
    The USA Patriot Act is the most unpatriotic act in American history.

    Comment

    • Lee

      #3
      Re: Question

      Evil Monkey said:[color=blue]
      >
      >When using the document.write command to dynamically cretae a new html
      >page .. how should I use the "" charcters.
      >
      >e.g. for font size="2"
      >
      >As the attributes appear within " "for the purposes of the documnet.write
      >bit ...it just gives me errors.?[/color]

      document.write( "You do it like \"this\".");

      Comment

      • Michael Winter

        #4
        Re: Question

        On Tue, 02 Mar 2004 17:24:35 -0600, Ivan Marsh <annoyed@you.no w> wrote:
        [color=blue]
        > On Tue, 02 Mar 2004 23:04:41 +0000, Evil Monkey wrote:
        >[color=green]
        >> When using the document.write command to dynamically cretae a new html
        >> page .. how should I use the "" charcters.[/color][/color]

        [snip]
        [color=blue]
        > document.write( "<FONT SIZE='2'>");
        >
        > Works just fine.[/color]

        Or vice versa:

        document.write( '<a href="somepage. html">some page<\/a>');

        Mike

        --
        Michael Winter
        M.Winter@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)

        Comment

        Working...