HTML5

[html] button 태그에 링크 걸기

jiyo01 2022. 11. 19. 13:31

<button> 태그에 링크 거는 방법

 

button 태그 안에 onclick="location.href='#'" 을 넣어주면 된다.

 

 

ex)

<button type="button" onclick="location.href='join.jsp'">회원가입</button>