If I use the write() function and then I want to change the font of what is already written how would I do it?How can you change font in javascript?
Give the element an id
%26lt;p id=';someName'; class=';styleX';%26gt;some text%26lt;/p%26gt;
Then use getElementById():
document.getElementById (';someName';). style.fontName =';lucida sans';;
(remove added spaces)
Subscribe to:
Post Comments
(Atom)
No comments:
Post a Comment