Get link to anchor (hash) with JavaScript
How to get the hash part (the part of the URL after the # symbol) with JavaScript:
The string with the # sign
var hash = window.location.hash;
The string without the # sign
var hash = window.location.hash.substring(1);
Latest news
- - S5 Slide Show System: PowerPoint on Linux
- - µTorrent for Linux
- - Linux audio tagger
- - Gnome 3 release date - interview with Stormy Peters
- - Ubuntu Maverick Meerkat Beta Released
- - Ubuntu Maverick Meerkat frozen
- - Tab Candy for Firefox
- - Ubuntu font launched for beta testing
- - Interview with Richard Stallman
- - Linux Mint 9 KDE released
- - Gnome 3 release date delayed to march 2011