“Back” link not working in Firefox

Maybe some of you use the following approach to create “back” links:

<a href="#" onclick="javascript:history.back();">back</a>

I used to do it this way until it turns out that this is not working under Firefox.

Fortunately I found the solution while I was reading an article posted at Code Project website. The back button there was working even in Firefox. The code used is really simple:

<a href="javascript:history.back();">back</a>

Enjoy!

, ,
Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • Technorati
  • digg
  • Reddit
  • SphereIt
  • DotNetKicks
  • YahooMyWeb

1 Response to “"Back" link not working in Firefox”


  1. 1 alberbetis Sep 11th, 2008 at 2:20 am

    This is that I was looking for, it works very well :-)

    Thank you very much!!


Google

Blogroll


Blogroll Me!

Enter your email address:

Delivered by FeedBurner







Academics Blogs - Blog Top Sites