<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: &#8220;Back&#8221; link not working in Firefox</title>
	<link>http://www.aspnettricks.com/archives/back-link-not-working-in-firefox/</link>
	<description></description>
	<pubDate>Sat, 19 May 2012 23:25:28 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>by: jjj</title>
		<link>http://www.aspnettricks.com/archives/back-link-not-working-in-firefox/#comment-55675</link>
		<pubDate>Wed, 29 Sep 2010 13:15:57 +0000</pubDate>
		<guid>http://www.aspnettricks.com/archives/back-link-not-working-in-firefox/#comment-55675</guid>
					<description>I know this is old entry, but I was facing the same problem. Ended up here after some google and the solution here made me thinking what is the real cause due the &quot;fix&quot; suggested here.


The real problem is that with code:

&lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;back&lt;/a&gt;

Firefox is executing the onclick, however Firefox is still executing the anchor link as well and moving the page to top. This cancels the history.back(). Now with proposed solution:

&lt;a href=&quot;history.back();&quot; rel=&quot;nofollow&quot;&gt;back&lt;/a&gt;

Firefox is just executing the anchor link, which in this case is entered as javascript block. All fine, and Firefox executes the history.back() as intended. However if you want to use the onclick and have that code work, you just have to tell Firefox not to execute the anchor (as originally intended):

&lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;back&lt;/a&gt;

Note the added &quot;return false;&quot;.</description>
		<content:encoded><![CDATA[<p>I know this is old entry, but I was facing the same problem. Ended up here after some google and the solution here made me thinking what is the real cause due the &#8220;fix&#8221; suggested here.</p>
<p>The real problem is that with code:</p>
<p><a href="#" rel="nofollow">back</a></p>
<p>Firefox is executing the onclick, however Firefox is still executing the anchor link as well and moving the page to top. This cancels the history.back(). Now with proposed solution:</p>
<p><a href="history.back();" rel="nofollow">back</a></p>
<p>Firefox is just executing the anchor link, which in this case is entered as javascript block. All fine, and Firefox executes the history.back() as intended. However if you want to use the onclick and have that code work, you just have to tell Firefox not to execute the anchor (as originally intended):</p>
<p><a href="#" rel="nofollow">back</a></p>
<p>Note the added &#8220;return false;&#8221;.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: alberbetis</title>
		<link>http://www.aspnettricks.com/archives/back-link-not-working-in-firefox/#comment-17262</link>
		<pubDate>Thu, 11 Sep 2008 06:20:16 +0000</pubDate>
		<guid>http://www.aspnettricks.com/archives/back-link-not-working-in-firefox/#comment-17262</guid>
					<description>This is that I was looking for, it works very well :-)

Thank you very much!!</description>
		<content:encoded><![CDATA[<p>This is that I was looking for, it works very well <img src='http://www.aspnettricks.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Thank you very much!!
</p>
]]></content:encoded>
				</item>
</channel>
</rss>

