开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜