March 8th, 2003, 01:18 PM
|
#2 (permalink)
|
| Member
Join Date: Oct 2001 Location: Midland, NC USA
Posts: 64
|
Say you want to use 18-point bold Arial. Code: <SCRIPT>
document.write '<FONT style="font-weight:bold;font-size:18pt;font-family:Arial">' +
Date() + '.</FONT>'
</SCRIPT>
Wrapping your literal strings with single quotes helps the browser recognize that the double quotes (around the style) are intended to be part of the string. |
| |