<div class="edit-button"
onmouseover="if(window.location.pathname == '/') this.style.display='none'"
onclick="window.open( 'manage/newpost'+window.location.pathname)">
글 수정
</div>
손대면 -> 기본상태면 숨기기
클릭하면 -> 글 수정 페이지로 이동
근데 이거 여기에 자바스크립트 올릴 수 있게 해도 되나?
티스토리 보안 괜찮음?
onload 막혀있는거 보면 괜찮겠지?
참고한 페이지들 목록 :
- https://beableto.tistory.com/entry/onload-event%EB%A5%BC-%EC%82%AC%EC%9A%A9%ED%95%B4-%EB%B4%90
- https://stackoverflow.com/questions/17465113/onmouseover-this-style-is-working-but-i-need-something-like-onmouseover-thi
- https://cofs.tistory.com/212
- https://www.w3schools.com/jsref/event_onload.asp