Question

Discussion in 'Javascript' started by Evil Monkey, Mar 2, 2004.

  1. Evil Monkey

    Evil Monkey Guest

    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
     
    Evil Monkey, Mar 2, 2004
    #1
    1. Advertising

  2. Evil Monkey

    Ivan Marsh Guest

    On Tue, 02 Mar 2004 23:04:41 +0000, Evil Monkey wrote:

    > 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


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

    Works just fine.

    --
    i.m.
    The USA Patriot Act is the most unpatriotic act in American history.
     
    Ivan Marsh, Mar 2, 2004
    #2
    1. Advertising

  3. Evil Monkey

    Lee Guest

    Evil Monkey said:
    >
    >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.?


    document.write("You do it like \"this\".");
     
    Lee, Mar 2, 2004
    #3
  4. On Tue, 02 Mar 2004 17:24:35 -0600, Ivan Marsh <> wrote:

    > On Tue, 02 Mar 2004 23:04:41 +0000, Evil Monkey wrote:
    >
    >> When using the document.write command to dynamically cretae a new html
    >> page .. how should I use the "" charcters.


    [snip]

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


    Or vice versa:

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

    Mike

    --
    Michael Winter
    d (replace ".invalid" with ".uk" to reply)
     
    Michael Winter, Mar 2, 2004
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. sean
    Replies:
    1
    Views:
    594
    Cowboy \(Gregory A. Beamer\)
    Oct 20, 2003
  2. =?Utf-8?B?UnlhbiBTbWl0aA==?=

    Quick Question - Newby Question

    =?Utf-8?B?UnlhbiBTbWl0aA==?=, Feb 14, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    658
    Iain Norman
    Feb 16, 2005
  3. =?Utf-8?B?YW5kcmV3MDA3?=

    question row filter (more of sql query question)

    =?Utf-8?B?YW5kcmV3MDA3?=, Oct 5, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    947
    Scott Allen
    Oct 6, 2005
  4. Philip Meyer
    Replies:
    0
    Views:
    422
    Philip Meyer
    Nov 30, 2003
  5. Bit Byte
    Replies:
    1
    Views:
    845
    Teemu Keiski
    Jan 28, 2007
Loading...

Share This Page