vReturnValue = window.showModelessDialog(sURL [, vArguments] [, sFeatures]) sFeatures: dialogHeight:sHeight Sets the height of the dialog window (see Res for default unit of measure). dialogLeft:sXPos Sets the left position of the dialog window relative to the upper-left corner of the desktop. dialogTop:sYPos Sets the top position of the dialog window relative to the upper-left corner of the desktop. dialogWidth:sWidth Sets the width of the dialog window (see Res for default unit of measure). 标题由sURL指向的页面的标题确定。
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
</head><body>
<script type="text/javascript">
function fOpWin(){
n=open('','namethis','width=200,height=200')
n.focus();
}
function fClsWin(){
n.close();
}
document.onmousemove=function(){
try{
n.focus();
} catch(e){}
}</script>
<a href="#" onClick="fOpWin();">popup window</a><br>
<a href="#" onClick="fClsWin();">close window</a><br></body>
</html>
sFeatures:
dialogHeight:sHeight Sets the height of the dialog window (see Res for default unit of measure).
dialogLeft:sXPos Sets the left position of the dialog window relative to the upper-left corner of the desktop.
dialogTop:sYPos Sets the top position of the dialog window relative to the upper-left corner of the desktop.
dialogWidth:sWidth Sets the width of the dialog window (see Res for default unit of measure). 标题由sURL指向的页面的标题确定。