开发者

Need to execute a query only once when accessing the site for the first time

开发者 https://www.devze.com 2023-01-30 13:59 出处:网络
I want to execute a javascript query only once when someone trying to access the site. Say i am trying to access http://www.google.com for the first time i should have开发者_开发问答 the javascript qu

I want to execute a javascript query only once when someone trying to access the site. Say i am trying to access http://www.google.com for the first time i should have开发者_开发问答 the javascript query triggered.


Have your Javascript check for the presence of a cookie. If the user doesn't have your cookie, run your script and add the cookie.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号