Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- Cross
- 스킨 스쿠버
- express for node.js
- 명사 추출기
- rss
- node.js web framework
- ajax
- 베트남어
- 도커
- C/C++
- 나의 프로젝트
- 책이야기
- 디즈니씨
- php
- ror실행
- Eclipse
- iBatis
- Node.js
- 주식이야기
- 메일왕창보내는법
- scala
- 나의 취미
- docker
- 명사 분석기
- 명사 뽑아내기
- nodejs express
- php thumbnail
- flex3
- Lift
- ejb
Archives
- Today
- Total
nkdk의 세상
JS :: 링크클릭시 외곽점선 숨김 본문
- srcElement : 이벤트를 발생한 객체를 반환합니다.
- getAttribute() : 해당객체의 속성값을 반환합니다.
- target : 새로운 창(프레임)의 이름을 설정합니다.
- window.open(url, 이름, 속성) : 새 창을 엽니다.
- window.lacation : 해당 URL을 반환하거나 지정합니다.
<html>
<script language="JavaScript">
<!--function jumpto() {
if (event.srcElement.getAttribute("target") == null)
window.location = event.srcElement.url
else
window.open(event.srcElement.url, event.srcElement.getAttribute("target"))
}// -->
</script>
<body><div url="http://www.naver.com" onclick="jumpto()" style="cursor:hand; color:blue;">
네이버로 이동하기
</div></body>
</html>