G'day,
I am studing at college and need help. I am having problems passing a value from a text input box to a function.
Also, in some programs I am experimenting with the function prints results in a new window and in others, in the current window - not too sure how I am mucking this up.
Peter
****************************************
<html>
<head><title>Angus Bookstore Autumn Sale</title>
<script language="vbscript">
function DoIt(Junk)
document.write(Junk)
document.write(form1.input1.value)
end function
</script>
</head>
<body bgcolor = "#ffcc99" text = "#800000">
<form name="form1">
<input type="text" name="input1" onChange=doit(66)>
</form>
<script>doit(33)</script>
</body>
</html>
I am studing at college and need help. I am having problems passing a value from a text input box to a function.
Also, in some programs I am experimenting with the function prints results in a new window and in others, in the current window - not too sure how I am mucking this up.
Peter
****************************************
<html>
<head><title>Angus Bookstore Autumn Sale</title>
<script language="vbscript">
function DoIt(Junk)
document.write(Junk)
document.write(form1.input1.value)
end function
</script>
</head>
<body bgcolor = "#ffcc99" text = "#800000">
<form name="form1">
<input type="text" name="input1" onChange=doit(66)>
</form>
<script>doit(33)</script>
</body>
</html>