<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" >
<head>
<title>My Prototype test bench </title>
</head>
<body>
<form action="" method="post">
<input type="text" id="s" name="s" size="10">
<input type="button" value="赋值" onclick="this.form.s.value='ssss'">
</form>
</body>
</html>
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" >
<head>
<title>My Prototype test bench </title>
<script ...>
function koko()
{
document.all.tt.style.display = 'none';
document.all.txt.style.display = '';
}
</script></head>
<body>
<form action="" method="post">
<div id="txt">
<input type="text">
</div>
<div id="tt">
<--把你的窗口的代码放在这个里面-->
</div>
<input type="button" value="赋值" onclick="koko();"/>
</form>
</body>
</html>