| Spread.Sheets Documentation > Sample Code > Sample Code for Cells > Setting the Cell Color |
You can set the backcolor and forecolor for the cells.

This example sets the backcolor and forecolor for a cell.
| JavaScript |
Copy Code
|
|---|---|
|
window.onload = function(){ //Set the backcolor and forecolor of a cell. |
|