preventDefault

이벤트 디폴트 동작 제어

a태그 클릭시 a태그의 기본동작인 구글로 이동을 제어하고 alert을 실행시킴


이동




Posted by 달팽이맛나
,