87,997
社区成员




<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">
function Test()
{
document.getElementById("tt").value="message hello";
}
function show()
{
document.getElementById("tt").style.display="";
document.getElementById("btn").style.display="";
}
</script>
</head>
<body>
<form name="myform" onsubmit="Test();" action="http://www.baidu.com" target="_blank">
Show:<input name="tt" id="tt" type="text" size=40 style="display:none"><br>
<input type="submit" value="Submit" style="display:none" id="btn">
<a href="#" onclick="show()">显示</a>
</form>
</body>
</html>
<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">
function Test()
{
document.getElementById("tt").value="message hello";
}
</script>
</head>
<body>
<form name="myform" onsubmit="Test();" action="http://www.baidu.com" target="_blank">
Show:<input name="tt" id="tt" type="text" size=40><br>
<input type="submit" value="Submit">
</form>
</body>
</html>
<form name="myform">
<a href="javascript:void(0);" onclick="document.getElementById('tt').type = 'text';">Show:</a>
<input id="tt" name="tt" type="hidden" size="40" />
<br />
<input type="submit" value="Submit" id="btn" />
</form>
<script type="text/javascript">
document.getElementById('btn').onclick = function() {
document.getElementById('tt').value = 'message hello';
return false;
}
</script>