form 태그
form 태그의 고찰
-
form tag의 inline 요소 중 **‘action’**과 ‘onsubmit’
1 2 3 4 5 6 7 8<form action="/oh my god" onsubmit="return test()"> <input type="submit" value="hahaha"> </form> <script> function test(){ console.log('HHHI') } </script>-
submit 형태의 input을 클릭하게 되면, submit이 동작하면서 form의 ‘onsubmit’이 실행
-
