Home > Web Front-end > JS Tutorial > body text

javascript web dialog boxes and pop-up windows_javascript skills

WBOY
Release: 2016-05-16 18:55:48
Original
943 people have browsed it

复制代码 代码如下:

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template