https://github.com/johnantoni/jquery.nolink
add javascript:void to any hyperlinks, good for progressive enhancement
https://github.com/johnantoni/jquery.nolink
Last synced: about 1 year ago
JSON representation
add javascript:void to any hyperlinks, good for progressive enhancement
- Host: GitHub
- URL: https://github.com/johnantoni/jquery.nolink
- Owner: johnantoni
- Created: 2010-01-20T20:14:50.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2011-08-15T16:47:40.000Z (almost 15 years ago)
- Last Synced: 2025-06-14T06:34:21.484Z (about 1 year ago)
- Language: JavaScript
- Homepage: http://www.johnantoni.com
- Size: 70.3 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
How to use?
-----------
$("a.submit").nolink();
Adds JavaScript:void(0); to the href attribute of links with the submit class href attribute.
Used to handle links differently when javascript is available using progressive enhancement.
now superseeded by .preventDefault();
http://api.jquery.com/event.preventDefault/