[html] <button>태그에 href 설정하기
리트리버J
·2021. 1. 11. 04:14
728x90
<button onclick="location.href='url주소'";> 로 설정해주면 된다.
*주의 할 점은 href=다음이 ''작은 따옴표라는 점이다.
<예시>
1
|
<button type="button" class="btn btn-success me-1" onclick="location.href='/tutorial/board'">취소</button>
|
cs |
728x90
'Programming > HTML, CSS' 카테고리의 다른 글
[CSS] div에 사진 넣기 background-image: url("") (0) | 2021.01.09 |
---|