Method 1
Use the outerHTML property to delete the DIV element, as in the following example:document.getElementById('myDiv').outerHTML=" "
Method 2
Put the background-image into a cascading style sheets file, as in the following example:<style type="text/css">
{ background-image: url(image.jpg); }
</style>