我不知道如下代码中的函数是什么意思
<script>
function winopen(){
var targeturl="index.asp"
newwin=window.open("","","resizable,noscrollbars",true)//windou.open中的是什么意思?
if (document.all){
newwin.moveTo(0,0)//moveto的用法?
newwin.resizeTo(screen.availWidth,screen.availHeight)//resizeto的用法?
newwin.location=targeturl
window.opener = null;
window.close();
}}</script>
</head><body onload ="winopen()"></body></html>请回答我的上面的问题急用谢谢高手们了
<script>
function winopen(){
var targeturl="index.asp"
newwin=window.open("","","resizable,noscrollbars",true)//windou.open中的是什么意思?
if (document.all){
newwin.moveTo(0,0)//moveto的用法?
newwin.resizeTo(screen.availWidth,screen.availHeight)//resizeto的用法?
newwin.location=targeturl
window.opener = null;
window.close();
}}</script>
</head><body onload ="winopen()"></body></html>请回答我的上面的问题急用谢谢高手们了
moveto 移到一个新的位置
resizeto 改变窗口大小
function winopen(){
var targeturl="index.asp"
newwin=window.open("","","resizable,noscrollbars",true)//windou.open中的是什么意思?//打开新窗口
if (document.all){
newwin.moveTo(0,0)//moveto的用法?窗口的起始点,就是刚打开是窗口是一个点
newwin.resizeTo(screen.availWidth,screen.availHeight)//resizeto的用法?这是窗口扩张//的方法,窗口逐渐变大,一直到screen.availWidth,screen.availHeight参数所表示的大小。
newwin.location=targeturl
window.opener = null;
window.close();
}}</script>
resizeto的用法?使窗口调整大小到宽 width 像素,高 height 像素
function winopen(){
var targeturl="index.asp"
newwin=window.open("","","resizable,noscrollbars",true)//windou.open中的是什么意思?
++++++++++++++++++++++++++++++++++++++++++
//打开一个空白窗口,可以改变大小,没有滚动条,返回窗口的id:newwin
if (document.all){
newwin.moveTo(0,0)//moveto的用法?
++++++++++++++++++++++++++++++++++++++++++
//新窗口移动到左上角 newwin.resizeTo(screen.availWidth,screen.availHeight)//resizeto的用法?
++++++++++++++++++++++++++++++++++++++++++
//改变窗口大小为有效的屏幕大小,按分辨率计算。 newwin.location=targeturl
++++++++++++++++++++++++++++++++++++++++++
//设置窗口的url window.opener = null;
++++++++++++++++++++++++++++++++++++++++++
//设置父窗口为null,是为了无提示关闭。 window.close();
++++++++++++++++++++++++++++++++++++++++++
//关闭父窗口
}