JavaScrip window对象
打开目标文件:Open(URL,windowname,parameterlist)
定时,一段时间后执行expression :setTimeout(expersion,time)
取消定时信号:clearTimeout(timer)
以time为间隔周期执行expression:setIntervel(expression,time)
确认对话框:Confirm()
弹出对话框msgbox:alert()
提示对话框,input:prompt()
-----------
<html><head><title>window对象</title>
<script language="javascript">
function list()
{
str=open("xxxx.htm","my","toolbar=no,left=150,top=200,menubar=no,width=170,height=100");//新窗口中打开文件xxxx.htm,toolbar是工具栏,menubar是菜单栏,此处为关闭不显示
return str;//函数返回STR
}
</script>
</head>
<body>
<input type="button" name="aa" value="打开" onclick="abc=list();">
<input type="button" name="bb" value="关闭" onclick="abc.close();">
</body></html>
---------
打开目标文件:Open(URL,windowname,parameterlist)
定时,一段时间后执行expression :setTimeout(expersion,time)
取消定时信号:clearTimeout(timer)
以time为间隔周期执行expression:setIntervel(expression,time)
确认对话框:Confirm()
弹出对话框msgbox:alert()
提示对话框,input:prompt()
-----------
<html><head><title>window对象</title>
<script language="javascript">
function list()
{
str=open("xxxx.htm","my","toolbar=no,left=150,top=200,menubar=no,width=170,height=100");//新窗口中打开文件xxxx.htm,toolbar是工具栏,menubar是菜单栏,此处为关闭不显示
return str;//函数返回STR
}
</script>
</head>
<body>
<input type="button" name="aa" value="打开" onclick="abc=list();">
<input type="button" name="bb" value="关闭" onclick="abc.close();">
</body></html>
---------