overføre en streng til javascript funktion
Hvordan overføre jeg det som er tastet ind i textboxen til min javascript funktion<html>
<head>
<title>
javascripttest
</title>
<script LANGUAGE="JavaScript">
function stringTest(str){
alert('hello '+str);
}
</script>
</head>
<body>
<form name="form1" method="post" action="">
<input type="text" name="streng">
<input type="button" name="button" value="button" onclick="stringTest(document.all.streng)">
</form>
</body>
</html>
