How can I create a “first-load” event in html or Javascript?

前端 未结 5 531
暗喜
暗喜 2021-01-15 15:39

I\'m starter. I have an idea. I want to implement an event like this. Is it possible?



First visit event
         


        
5条回答
  •  春和景丽
    2021-01-15 15:48

    You have a couple of options: storing a cookie on the client or utilizing the local storage of html5. Either of these could be checked on page load.

    Here is a link for getting started with HTML5 web storage:

    http://www.w3schools.com/html/html5_webstorage.asp

提交回复
热议问题