Code dieses Beispiels
<html>
<head>
<meta http-equiv=
"Content-Type"
content=
"text/html; charset=windows-1252"
>
<meta name=
"GENERATOR"
content=
"Microsoft FrontPage 4.0"
>
<meta name=
"ProgId"
content=
"FrontPage.Editor.Document"
>
<title>
Beispiel
</title>
<SCRIPT LANGUAGE=JScript>
<!--
move=false
function newtext()
{
document.form1.text1.value="Beispiel";
}
function changetext(){
document.form1.text1.value="Veränderter Text";
}
-->
</SCRIPT>
</head>
<body>
<form name=
form1
>
<INPUT type=
"text"
id=
text1
name=
text1
>
<INPUT type=
"button"
value=
"Text setzen"
id=
button1
name=
button1
onclick=
"newtext()"
>
<INPUT type=
"button"
value=
"Text ändern"
id=
button2
name=
button2
onclick=
"changetext()"
>
<INPUT type=
"button"
value=
"Text löschen"
id=
button3
name=
button3
onclick=
"document.form1.text1.value=''"
>
<p>
</p>
</form>
</body>
</html>