<html>
<head>
<title>window.resizeTo()函数</title>
<script laguage="javascript">
<!--
function movewin(form)
{
var winx=form.X.value;
var winy=form.Y.value;

window.moveTo(winx,winy);
}
//-->
</script>
</head>
<body bgcolor="#6699FF" text="#000000">
<form name=form1>
<table border=0 align=center width="575">
<tr>
<td colspan=3 align=center bgcolor=lightgreen><font color=blue size=3>输入窗口位置</font></td>
</tr>
<tr>
<td>
<input type=text name="X" style="background-color:lightblue;color:blue">
</td>
<td>
<input type=text name="Y" style="background-color:lightblue;color:blue">
</td>
<td>
<input type=button value="move window" onclick=movewin(this.form) style="background-color:lightgreen;color:blue">
</td>
</tr>
</table>
</form>
</body>
</html>

相关文章:

  • 2021-09-09
  • 2021-08-18
  • 2021-11-01
  • 2021-07-15
  • 2021-06-06
  • 2021-06-20
  • 2021-10-05
猜你喜欢
  • 2022-12-23
  • 2021-08-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案