Question

E

Evil Monkey

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
 
I

Ivan Marsh

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.
 
L

Lee

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\".");
 
M

Michael Winter

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top