[thelist] CSS from within Javascript

Ed Nolan ed at nolans.net
Fri Aug 4 11:16:17 CDT 2000


Anybody know how to write a JavaScript line that includes a call to CSS?

I'm quickly finding that calls to CSS from within JavaScript tags are
ineffective.
For example, the JavaScript command below:

        document.write("<span" + " " + "id=&quot;date&quot;>");

Should, supposedly, write a CSS tag:

        <span id="date">

That exact same tag works outside of the JavaScript tags but not from within
the tags.
I wouldn't be doing this in JavaScript if it didn't require a calculation.
Thanks for any suggestions in advance.

--- Ed





More information about the thelist mailing list