同时打开多个窗口,如何判断鼠标当前处于哪个窗口位置? 同时打开多个窗口,如何判断鼠标当前处于哪个窗口位置?求救! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <!--document.body.onclick=function(){alert(window.location.pathname)}//-->楼主要是为了判断是在哪个窗口的话,是否可以用得到窗口的文件名来判断呢 win.htm____________________________________<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>无标题文档</title></head><script language="javascript">var uu=window.open("dd.htm","win1", "width=400,height=400,top=200")var cc=window.open("cc.htm","win2", "width=400,height=400,left=450,top=200")</script><body><input name="uu" type="text" id="uu"></body></html>dd.htm_____________________________________________<script language="javascript">document.onmouseover=s;function s(){window.opener.document.all("uu").value="win1";}</script>win1cc.htm-------------------------------------------------------------<script language="javascript">document.onmouseover=s;function s(){window.opener.document.all("uu").value="win1";}</script>win2 请教js高手门一个非常纠结的问题 请问如何用js修改时间 js得到页面的所有的span标签 看似简单的js问题 事件 html 中 label取值 新手求教,如何实现地区联动,但是数据是直接是从数据库中读取? 在一个页面表单提交后,如何在新出来的页面中获得提交的value??(高分急求) 一个菜鸟问题!我都不好意思问出来,没有办法,谁叫我不知道吗? 哪儿有关于.htc的讨论? 奇怪,textarea不能显示完全部内容? 如何給新打開的頁面添加樣式啊
document.body.onclick=function(){alert(window.location.pathname)}
//-->
楼主要是为了判断是在哪个窗口的话,是否可以用得到窗口的文件名来判断呢
____________________________________
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<script language="javascript">
var uu=window.open("dd.htm","win1", "width=400,height=400,top=200")
var cc=window.open("cc.htm","win2", "width=400,height=400,left=450,top=200")
</script>
<body>
<input name="uu" type="text" id="uu">
</body>
</html>dd.htm
_____________________________________________
<script language="javascript">
document.onmouseover=s;
function s(){
window.opener.document.all("uu").value="win1";
}</script>
win1cc.htm
-------------------------------------------------------------
<script language="javascript">
document.onmouseover=s;
function s(){
window.opener.document.all("uu").value="win1";
}</script>
win2