Show a div only once per time the user is on the site

前端 未结 3 1786
天涯浪人
天涯浪人 2020-12-18 11:44

I\'m trying to show a div element only once per time that the user is on the site. I\'ve seen multiple answers to similar questions already, but none of them seem to work...

3条回答
  •  我在风中等你
    2020-12-18 12:04

    Try this: in html: class="popupp" change to id="popupp"

    and in javascript: document.getElementById("popupp").style.visibility = visible; change to document.getElementById("popupp").style.visibility = "visible";

    Demo

提交回复
热议问题