以下已测试:
html:
<html>
<head>
<meta http-equiv=content-type content="text/html;charset=GBK">
</head>
<body>
<input id="__txt" type="password" />
<input id="__ttm" type="button" value="提交" οnclick="sub()">
</body>
<script>
function sub(){
var content = document.getElementById("txt");
alert(content.value);
}
</script>
</html>
C#代码:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Text.RegularExpressions;
namespace tt
{
class Program
{
static void Main(string[] args)
{