Jump to content

cell color onmouseover


PunjabHaker

Recommended Posts

put 'Color' on back of 'background' (capitalize the 'C')

onmouseover = this.style.backgroundColor = 'red'

-General rule: to access from javascript a css attribute that normally has a '-' in it, remove the '-' and capitalize the first letter of the word following it.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.