Select pound sign and all the text after it in url : How do I remove a URL's pound sign and the text after it with jQuery on click?

For example, the URL is http://www.website.com/home#content

I want the whole *#content* text to be removed.