日期:2014-05-16 浏览次数:20496 次
<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>