javascript TD background

backgroundNN n/a IE 4 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.


2036,Nickname,Homepage or email,Comments here,Add comment