javascript - How to refresh a home page or go to the home page with one link? -


alright here's dilemma, have refresh link on blog refreshes current page you're on. want link to, if you're on homepage (/) refresh , if you're on different page, /tagged/me go homepage / current html have links section is:

<div id="linkz">      <a href="javascript:history.go(0)" title ="refresh">refresh</a>     - <a href="/fask" title="fask">fask</a>    - <a href="/tagged/me" title="face">face</a>     - <a href="/more" title="more">more</a></div> 

p.s. blog here , links in sidebar.

i'm not sure if question asking if want go home page, set link

<a href="/" title="home page">home page</a> 

on every single page. no need javascript, straight html.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -