How would I go about doing this? I'd like to create a "pop up effect", where a div "pops up" and its opacity is 1 while the background is transparent. If I do
document.body.style = '0.1';it makes everything including the div transparent. I've also tried
document.getElementById('popup').style.opacity = '1.0';in addition to setting the body's style but to no avail.