web2020. 7. 22. 12:00

[html]button onclick 이동가능하게 하는 방법

 

<button class="btn btn-outline-success" type="button" onclick="location.href='/logout'">로그아웃</button>

 

-> 내부의 logout url 이동

 

    <button class="btn btn-outline-success" type="button" onclick="location.href='http://www.naver.com'">naver.com gogo</button>

 

-> http url 이동 

Posted by thdeodls85