Hi,
I'm fairly new to javascript and I don't know what to change to fix this error:
mozilla javascript console said: "invalid assignment left-hand side"
heres my code:
Script in the head tag:-
<script type="text/javascript" language="javascript">
function fcnAlterColour(ID, Colour){
document.getElementById(ID).style.background-Color = 'Colour';
}
</script>
call function in html:
<td onclick="fcnAlterColour('findusimages', '#000000')"></td>
td to change background colour in html:
<td id="findusimages"></td>
thanks in advance