I am trying to test to see if a submit button was pressed on a form using
the form code start with <form method="post" action="">
the submit button code is <input type="submit" id="submit" value="submit"
What am I missing are doing wrong?
I tried document.req.onsubmit but no luck either
thanks
Code:
<script>
if(document.req.submit){
alert('testing');
}
</script>
the form code start with <form method="post" action="">
the submit button code is <input type="submit" id="submit" value="submit"
What am I missing are doing wrong?
I tried document.req.onsubmit but no luck either
thanks