Change or replace the href of an anchor tag with javascript

With help of java script you can change href of any anchor tag.