Home  >  Article  >  Web Front-end  >  javascript web dialog boxes and pop-up windows_javascript skills

javascript web dialog boxes and pop-up windows_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:55:48944browse

复制代码 代码如下:

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");
}

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn