<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script type="text/javascript">
var mywindows;
function openIt(){
mywindows = open('','mywin','height=300,with=300,scrollbars=yes');
mywindows.document.writeln("<html><head><title></title></head><body>");
mywindows.document.writeln("javascript对象方法调用");
mywindows.document.writeln("</body><html/>");
mywindows.document.close();
mywindows.focus();
mywindows.moveTo(200,400);
mywindows.resizeTo(screen.availWidth,screen.availHeight);
}
</script>
</head>
<body>
<form action="#" method="get" id="testfrom" name="testfrom">
<input type="button" id="open" name="ope" value="open" οnclick="openIt()"/>
<input type="button" id="colse" name="colse" value="colse" οnclick="mywindows.close();"/>
</form>
</body>
</html>
javaScripte创建对象窗口
最新推荐文章于 2024-09-14 18:52:56 发布