UNPKG
catch-links
Version:
latest (2.0.1)
2.0.1
2.0.0
1.1.0
1.0.0
0.0.1
0.0.0
intercept local link clicks on a page
github.com/substack/catch-links
substack/catch-links
catch-links
/
example
/
index.html
22 lines
(17 loc)
•
294 B
HTML
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<
html
>
<
body
>
<
div
>
<
a
href
=
"/a"
>
aaa
</
a
>
</
div
>
<
div
>
<
a
href
=
"/bbb"
>
bbb
</
a
>
</
div
>
<
div
>
<
a
href
=
"cc"
>
cc
</
a
>
</
div
>
<
div
>
<
a
href
=
"http://npmjs.org"
>
npmjs
</
a
>
</
div
>
<
script
src
=
"bundle.js"
>
</
script
>
</
body
>
</
html
>