Javascript game circle and cross

How to do change from circle to cross and vice versa

function move(event) {
    console.log(event.target);
    if (event.target.id) {
        id=document.getElementById(event.target.id).id
        background="red";
        document.getElementById(id).style.backgroundImage = "url('close.png')"; 
    }
}