web交流Q:460053411,欢迎留言!
<html xmlns="http://www.w3.org/1999/xhtml" ><head><meta charset="utf-8"><title>页面首次访问判断</title></head><body> <h1><a href="abbykk.github.io">GO</a></h1> <script language ="javascript" type ="text/javascript" > //1浏览器关闭则window.name为空,可以实现跨域,数据传递 // alert((window.name == "" ? "是" : "不是") + "第一次开这个窗口!") // window.name = "00";//2cookie判断function setCookie(cname,cvalue,exdays){var d = new Date();d.setTime(d.getTime()+(exdays*24*60*60*1000));var expires = "expires="+d.toGMTString();document.cookie = cname + "=" + cvalue + "; " + expires;}functi