-1

2 つの送信ボタンがある html フォームを作成する必要があります

どちらもデータをキャプチャしてから、別のページにリダイレクトする必要があります

このコードを使用しました

<input type="button" name="submit1" value= "submit" onclick="first();">
 <input type="button" name="Submit2" value= "submit and refill "onclick="second();">

そして頭の中で関数を定義しました

`

**<script type="text/javascript">
function sub() {
new name.target = 'https://www.google.com';
new name.submit();
}
function subr() {
new name.target = 'https://www.gmail.com';
new name.submit();
}
</script>**

しかし、それは機能していません..私はjavascriptとhtmlを使用するだけです

plzzz plzzz 助けて!!

4

1 に答える 1