My goal is to be able to call a perl script "test.pl" when a user clicks the button. How do I make the appropriate call. Is onClick the correct choice?
<html>
<head>
<script language="javascript">
function forward() {
var InputAmt = inform.input1;
var NewNum = parseInt(InputAmt.value);
document.write("NewNumber ", NewNum);
}
</script>
</head>
<body>
<h1>TEST phone forward change page</h1>
<hr>
Enter the new Telephone #.
<hr>
<form name="inform">
<input type="text" size="2" name="input1"><br>
<input type="button" value="CHANGE"
onClick=`test3.pl`;>
</form>
<hr>
</body>
</html>
<html>
<head>
<script language="javascript">
function forward() {
var InputAmt = inform.input1;
var NewNum = parseInt(InputAmt.value);
document.write("NewNumber ", NewNum);
}
</script>
</head>
<body>
<h1>TEST phone forward change page</h1>
<hr>
Enter the new Telephone #.
<hr>
<form name="inform">
<input type="text" size="2" name="input1"><br>
<input type="button" value="CHANGE"
onClick=`test3.pl`;>
</form>
<hr>
</body>
</html>