日期:2014-05-16  浏览次数:20402 次

请问各位要动态改变当前窗口大小,在js中该怎么做啊?
请问各位要动态改变当前窗口大小,在js中该怎么做啊?

------解决方案--------------------
<html>
<head>
<meta http-equiv= "Content-Type " content= "text/html; charset=gb2312 ">
<title> b </title>
<script>
function resize(){
window.resizeTo(100,100);
}
</script>
</head>
<body>
<input type=button value= "change " onclick= "resize() ">
</body>
</html>