用js向弹出的窗体内写入文本

来源:互联网 发布:安徽职业技术学院域名 编辑:程序博客网 时间:2024/06/01 08:56

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title></title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name=ProgId content=VisualStudio.HTML>
<meta name=Originator content="Microsoft Visual Studio .NET 7.1">
<script language=javascript>
function testLength()
{
 floater=window.open("备忘.txt","","height=200,width=200,scrollbars=no");
 floater.document.open();//可省略
 floater.document.write("new content for floatingwindow!");
 floater.document.close();
}
</script>
</head>
<body>

<button onclick="testLength()" ID="Button1"> test</button>


</body>
</html> 

原创粉丝点击