티스토리 뷰
Umc Projects/onhashchange
[onhashchange] hash 를 감지하는 onhashchange.js Polyfill 라이브러리
POWERUMC 2016. 5. 13. 16:18onhashchange
onhashchange.js 를 방금 릴리즈 했습니다.
https://github.com/powerumc/onhashchange
onhashchange 기능이 제공되는지 여부를 감지하고, 이를 지원하지 않는 오래된 브라우저인 경우 Polyfill 을 지원합니다.
아래의 호환 브라우저 미만인 경우 onhashchange Polyfill 이 동작하게 됩니다.
Implemented event fields.
The dispatched hashchange event has the following fields:
Field | Type | Description |
---|---|---|
newURL | DOMString | The new URL to which the window is navigating. |
oldURL | DOMString | The previous URL from which the window was navigated. |
Browser compatibility
Desktop Mobile
Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 5.0 3.6 (1.9.2) 8.0 10.6 5.0
Ref. https://developer.mozilla.org/ko/docs/Web/API/WindowEventHandlers/onhashchange
Example
<html>
<head>
<script type="text/javascript" src="onhashchange.js"></script>
<script>
window.onhashchange = function(e) {
alert("onhashchange");
}
</script>
</head>
<body>
<p><a href="#a">#a</a></p>
<p><a href="#b">#b</a></p>
<p><a href="#c">#c</a></p>
</body>
</html>
- TAG
- hash, onhashchange, polyfill
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- 2,841,738
- Today
- 3
- Yesterday
- 47
링크
- ***** MY SOCIAL *****
- [SOCIAL] 페이스북
- [SOCIAL] 팀 블로그 트위터
- .
- ***** MY OPEN SOURCE *****
- [GITHUB] POWERUMC
- .
- ***** MY PUBLISH *****
- [MSDN] e-Book 백서
- .
- ***** MY TOOLS *****
- [VSX] VSGesture for VS2005,200…
- [VSX] VSGesture for VS2010,201…
- [VSX] Comment Helper for VS200…
- [VSX] VSExplorer for VS2005,20…
- [VSX] VSCmd for VS2005,2008
- .
- ***** MY FAVORITES *****
- MSDN 포럼
- MSDN 라이브러리
- Mono Project
- STEN
- 일본 ATMARKIT
- C++ 빌더 포럼
- .
TAG
- monodevelop
- Windows 8
- 팀 파운데이션 서버
- Visual Studio 2010
- Silverlight
- test
- mono
- Visual Studio 11
- MEF
- testing
- c#
- Team Foundation Server 2010
- TFS
- .NET
- .NET Framework 4.0
- LINQ
- Visual Studio
- ALM
- umc
- 비주얼 스튜디오 2010
- github
- 엄준일
- 비주얼 스튜디오
- ASP.NET
- Managed Extensibility Framework
- 땡초
- Visual Studio 2008
- TFS 2010
- POWERUMC
- Team Foundation Server
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |
글 보관함
- 2020/05 (1)
- 2019/10 (3)
- 2018/11 (1)
- 2018/08 (2)
- 2017/04 (1)
- 2017/01 (2)
- 2016/11 (2)
- 2016/08 (1)
- 2016/05 (1)
- 2016/04 (2)
- 2016/02 (2)
- 2016/01 (1)
- 2015/05 (1)
- 2015/04 (2)
- 2015/03 (1)
- 2015/02 (1)
- 2015/01 (1)
- 2014/11 (1)
- 2014/09 (2)
- 2014/08 (2)
- 2014/05 (2)
- 2014/04 (3)
- 2014/03 (2)
- 2014/02 (2)
- 2014/01 (4)
- 2013/12 (2)
- 2013/11 (1)
- 2013/10 (2)
- 2013/09 (6)
- 2013/08 (3)