<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Javascript href Voids and More</title>
	<atom:link href="http://blindsignals.com/2009/07/javascript-href-voids-and-more/feed/" rel="self" type="application/rss+xml" />
	<link>http://blindsignals.com/2009/07/javascript-href-voids-and-more/</link>
	<description>Web Development, Business, and Life</description>
	<lastBuildDate>Mon, 26 Jul 2010 13:47:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: chelfers</title>
		<link>http://blindsignals.com/2009/07/javascript-href-voids-and-more/comment-page-1/#comment-76</link>
		<dc:creator>chelfers</dc:creator>
		<pubDate>Fri, 04 Sep 2009 13:02:08 +0000</pubDate>
		<guid isPermaLink="false">http://blindsignals.com/?p=142#comment-76</guid>
		<description>There is no official set standard, what a lot of people do is set a url to an actual page to perform the same function as the javascript.  ( check the last example above ), or you could do:

[code lang=&quot;html&quot;]
.js_enabled { display: none; }

&lt;a href=&quot;#&quot; class=&quot;js_enabled&quot; rel=&quot;nofollow&quot;&gt;link&lt;/a&gt;

&lt;noscript&gt;
  &lt;span class=&quot;fake_link&quot;&gt;link&lt;/span&gt;
&lt;noscript&gt;
[/code]

and set a script to change the js_enabled class to remove the display property which of course would only work if javascript was enabled.</description>
		<content:encoded><![CDATA[<p>There is no official set standard, what a lot of people do is set a url to an actual page to perform the same function as the javascript.  ( check the last example above ), or you could do:</p>
<div class="codesnip-container" >
<div class="html4strict codesnip" style="font-family:monospace;">.js_enabled { display: none; }</p>
<p><span class="sc2">&lt;<a href="http://december.com/html/4/element/a.html"><span class="kw2">a</span></a> <span class="kw3">href</span><span class="sy0">=</span><span class="st0">&quot;#&quot;</span> <span class="kw3">class</span><span class="sy0">=</span><span class="st0">&quot;js_enabled&quot;</span> <span class="kw3">rel</span><span class="sy0">=</span><span class="st0">&quot;nofollow&quot;</span>&gt;</span>link<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/a.html"><span class="kw2">a</span></a>&gt;</span></p>
<p><span class="sc2">&lt;<a href="http://december.com/html/4/element/noscript.html"><span class="kw2">noscript</span></a>&gt;</span><br />
&nbsp; <span class="sc2">&lt;<a href="http://december.com/html/4/element/span.html"><span class="kw2">span</span></a> <span class="kw3">class</span><span class="sy0">=</span><span class="st0">&quot;fake_link&quot;</span>&gt;</span>link<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/span.html"><span class="kw2">span</span></a>&gt;</span><br />
<span class="sc2">&lt;<a href="http://december.com/html/4/element/noscript.html"><span class="kw2">noscript</span></a>&gt;</span></div>
</div>
<p>and set a script to change the js_enabled class to remove the display property which of course would only work if javascript was enabled.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://blindsignals.com/2009/07/javascript-href-voids-and-more/comment-page-1/#comment-75</link>
		<dc:creator>David</dc:creator>
		<pubDate>Fri, 04 Sep 2009 10:50:52 +0000</pubDate>
		<guid isPermaLink="false">http://blindsignals.com/?p=142#comment-75</guid>
		<description>I have spent the best of today researching articles on this topic and I am still searching for some sense on it. The problem with the href=&quot;#&quot; link is that when a user clicks on the link with Javascript disabled, they get redirected to the top of the current page, which is confusing. I have a set of javascript links on a page that display or hide some blocks of text. If javascript is disabled, I just want the link to do nothing. Yes, I could link some Please-enable-Javascript.html page, but that is equally annoying.

What is the &quot;official&quot; standards-compliant way to have a link that just does nothing when the user clicks on it with javascript disabled?

David</description>
		<content:encoded><![CDATA[<p>I have spent the best of today researching articles on this topic and I am still searching for some sense on it. The problem with the href="#" link is that when a user clicks on the link with Javascript disabled, they get redirected to the top of the current page, which is confusing. I have a set of javascript links on a page that display or hide some blocks of text. If javascript is disabled, I just want the link to do nothing. Yes, I could link some Please-enable-Javascript.html page, but that is equally annoying.</p>
<p>What is the "official" standards-compliant way to have a link that just does nothing when the user clicks on it with javascript disabled?</p>
<p>David</p>
]]></content:encoded>
	</item>
</channel>
</rss>
