Javascript Reference
Categories: TD

javascript TD background

@March 15, 2008, 1:22 a.m.
backgroundFirefox/Netscape/NN n/a IE 4 Chrome/Safari/DOM n/a  

Read/Write  

Specifies the URL of the background image for the cell. If you set a bgColor to the element as well, the color appears if the image fails to load; otherwise, the image overlays the color.

 
Example
 
document.getElementById("myTD").background = "images/watermark.jpg";
 
Value

Complete or relative URL to the background image file.

 
Default

None.


Powered by Linode.