onClick="location.href="'" with javascript code example Example: javascript onclick href location onclick="location.href='unit_01.htm'"