...">

How to refresh a page using href in Firefox

I use the following code to refresh my page using the link:

<a href="javascript:history.go(0)">

This works in Safari (i.e. the page is updated to new content). However, in Firefox, I get a cached page. Is there a way to adapt this to work in all browsers or do I need another method?

Thank,

Nick

+5
source share
2 answers

You can use:

<a href='#' onclick='location.reload(true); return false;'>click me</a>
+14
source

You can simply leave href blank and reload the current page.

<a href=''>Reload</a>

No onclick or # event needed.

+2
source

All Articles