首页 > 语言 > JavaScript > 正文

javascript web对话框与弹出窗口

2024-05-06 14:16:05
字体:
来源:转载
供稿:网友

代码如下:
function LoadWindow(val)
{
URL="sendmsg.aspx?nickname="+val;
loc_x=document.body.scrollLeft+event.clientX-event.offsetX;
loc_y=document.body.scrollTop+event.clientY-event.offsetY;
//window.showModalDialog(URL,self,"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:450px;dialogHeight:450px;dialogTop:"+loc_y+"px;dialogLeft:"+loc_x+"px");
window.open(URL,null,"height=400,width=550,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top=150,left=100,resizable=no");
}

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表

图片精选