document.getElementById('image').click = function() { document.getElementById('div').style.display = 'block'; }