Hey there all, just a quickie:
I am trying the following:
document.getElementById('font2').setAttribute('color', 'red');
document.getElementById('font2').setAttribute('font-weight', 'bold');
This is supposed to make the following font tag red and bold:
<FONT id="font2" color="black">Reports</FONT>
But it is only making it red and not bold. Is 'font-weight' an actual attribute that I can change, or am I doing something wrong?
Any and all help is greatly appreciated.
Sean.
I am trying the following:
document.getElementById('font2').setAttribute('color', 'red');
document.getElementById('font2').setAttribute('font-weight', 'bold');
This is supposed to make the following font tag red and bold:
<FONT id="font2" color="black">Reports</FONT>
But it is only making it red and not bold. Is 'font-weight' an actual attribute that I can change, or am I doing something wrong?
Any and all help is greatly appreciated.
Sean.