以下はコードです。
<html>
<head>
<script type="text/javascript">
function call() {
alert("hai");
}
</script>
</head>
<body>
<form name="login" method="post" action="">
<input type="submit" name="Submit" value="login" onSubmit="call()">
</form>
</body>
</html>
onSubmit
入力要素 type 内にイベントを作成することは可能ですかbutton
。
これは課題用です。可能だと先生に言われました。どんな助けでも大歓迎です。
ありがとうございました。