如何用js实现某一个变量在浏览时一直保持,在关闭浏览器后就消失?谢了 方法一:a.html<script>window.name="HHHHHHHHH";</script>b.html<script>alert(window.name);</script> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 跟着三楼的思路,处理多个变量:<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><body><input type=button value="test" onclick="window.opener=new Array('a','b','c');" ><input type=button value="test2" onclick="if(window.opener!=null) alert(window.opener[0]);"></body></html> 调用 IE 查找功能时报错 让表情图显示和隐藏 jsp页面 js报缺少对象 使用node.js开发rest api,如果提供文件上传接口 关于标签的name值改成变量的问题 小妹有个简单的问题 判断上下密码填写一致的代码 我要开一个新窗口。新开的窗口有所有工具条地址栏等。我要的效果是在这个窗口中控制自己 怎样是一个窗口一进入就自动全屏或最大化? 这个this引用的是谁? js内存为何没能回收没用的对象 用单选按钮控制输入框的显示属性,怎么做? 如何用js获取table中光标的位置?
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
<body>
<input type=button value="test" onclick="window.opener=new Array('a','b','c');" >
<input type=button value="test2" onclick="if(window.opener!=null) alert(window.opener[0]);">
</body></html>