<!-- [BODY_OnLoad]
[BODY_OnUnLoad]
[BODY_Colors]
"#FFFF1F","#FFFF1F","#FFFF1F","#FFFF1F","#FFFF1F",
-->
<!-- To HEAD -->
<script TYPE="text/javascript" LANGUAGE="JavaScript">
<!--
// -->
</script>
<!-- To BODY -->
<script
TYPE="text/javascript" LANGUAGE="JavaScript">
<!--
function modifyvalue(form){
alert("demo");
form.elements[0].value="hubdog";
}
// -->
</script>
<html>
<head>
<title></title>
</head>
<body>
<p>下面是javascript的方法,等会我再贴twebbrowser的例子<font COLOR="#000000"></p>
<p>&lt;</font><font COLOR="#800080">!--</font><font COLOR="#008000"> [BODY_OnLoad]</p>
<p>[BODY_OnUnLoad]</p>
<p>[BODY_Colors]</p>
<p>&quot;#FFFF1F&quot;,&quot;#FFFF1F&quot;,&quot;#FFFF1F&quot;,&quot;#FFFF1F&quot;,&quot;#FFFF1F&quot;,</p>
<p>--</font><font COLOR="#000000">&gt;</p>
<p>&lt;</font><font COLOR="#800080">!--</font><font COLOR="#008000"> To HEAD --</font><font
COLOR="#000000">&gt;</p>
<p>&lt;</font><font COLOR="#800080">script </font><font COLOR="#ff0000">TYPE=&quot;</font><font
COLOR="#0000ff">text/javascript</font><font COLOR="#ff0000">&quot; LANGUAGE=&quot;</font><font
COLOR="#0000ff">JavaScript</font><font COLOR="#ff0000">&quot;</font><font COLOR="#000000">&gt;</p>
<p>&lt;!-- </p>
<p>// --&gt;</p>
<p>&lt;</font><font COLOR="#800080">/script</font><font COLOR="#000000">&gt;</p>
<p>&lt;</font><font COLOR="#800080">!--</font><font COLOR="#008000"> To BODY --</font><font
COLOR="#000000">&gt;</p>
<p>&lt;</font><font COLOR="#800080">script</font><font COLOR="#ff0000"></p>
<p>TYPE=&quot;</font><font COLOR="#0000ff">text/javascript</font><font COLOR="#ff0000">&quot;
LANGUAGE=&quot;</font><font COLOR="#0000ff">JavaScript</font><font COLOR="#ff0000">&quot;</font><font
COLOR="#000000">&gt;</p>
<p>&lt;!-- </p>
<p>function modifyvalue(form){</p>
<p>alert(&quot;demo&quot
;</p>
<p>form.elements[0].value=&quot;hubdog&quot;;</p>
<p>}</p>
<p>// --&gt;</p>
<p>&lt;</font><font COLOR="#800080">/script</font><font COLOR="#000000">&gt;</p>
<p>&lt;</font><font COLOR="#800080">html</font><font COLOR="#000000">&gt;</p>
<p>&lt;</font><font COLOR="#800080">head</font><font COLOR="#000000">&gt;</p>
<p>&lt;</font><font COLOR="#800080">title</font><font COLOR="#000000">&gt;&lt;</font><font
COLOR="#800080">/title</font><font COLOR="#000000">&gt;</p>
<p>&lt;</font><font COLOR="#800080">/head</font><font COLOR="#000000">&gt;</p>
<p>&lt;</font><font COLOR="#800080">body</font><font COLOR="#000000">&gt;</p>
<p>&lt;</font><font COLOR="#800080">form</font><font COLOR="#000000">&gt;</p>
<p>&lt;</font><font COLOR="#800080">p</font><font COLOR="#000000">&gt;&lt;</font><font
COLOR="#800080">input </font><font COLOR="#ff0000">TYPE=&quot;</font><font COLOR="#0000ff">TEXT</font><font
COLOR="#ff0000">&quot; NAME=&quot;</font><font COLOR="#0000ff">demo</font><font
COLOR="#ff0000">&quot; VALUE=&quot;</font><font COLOR="#0000ff">demo</font><font
COLOR="#ff0000">&quot; SIZE=&quot;</font><font COLOR="#0000ff">20</font><font
COLOR="#ff0000">&quot; ALIGN=&quot;</font><font COLOR="#0000ff">LEFT</font><font
COLOR="#ff0000">&quot;</font><font COLOR="#000000">&gt; &lt;</font><font COLOR="#800080">input</font><font
COLOR="#ff0000"></p>
<p>TYPE=&quot;</font><font COLOR="#0000ff">BUTTON</font><font COLOR="#ff0000">&quot;
NAME=&quot;</font><font COLOR="#0000ff">modify</font><font COLOR="#ff0000">&quot;
VALUE=&quot;</font><font COLOR="#0000ff">modify</font><font COLOR="#ff0000">&quot;
ALIGN=&quot;</font><font COLOR="#0000ff">LEFT</font><font COLOR="#ff0000">&quot;
onclick=&quot;</font><font COLOR="#0000ff">modifyvalue(this.form)</font><font
COLOR="#ff0000">&quot;</font><font COLOR="#000000">&gt; &lt;</font><font COLOR="#800080">/p</font><font
COLOR="#000000">&gt;</p>
<p>&lt;</font><font COLOR="#800080">/form</font><font COLOR="#000000">&gt;</p>
<p>&lt;</font><font COLOR="#800080">/body</font><font COLOR="#000000">&gt;</p>
<p>&lt;</font><font COLOR="#800080">/html</font><font COLOR="#000000">&gt;</font></p>
</body>
</html>