<?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: Remove Anchors from a Url in Javascript</title>
	<atom:link href="http://jelaniharris.com/2008/remove-anchors-from-a-url-in-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://jelaniharris.com/2008/remove-anchors-from-a-url-in-javascript/</link>
	<description>The original website of Jelani Harris the original of course</description>
	<lastBuildDate>Mon, 19 Jul 2010 16:57:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Jelani Harris</title>
		<link>http://jelaniharris.com/2008/remove-anchors-from-a-url-in-javascript/comment-page-1/#comment-75</link>
		<dc:creator>Jelani Harris</dc:creator>
		<pubDate>Sat, 12 Dec 2009 18:49:35 +0000</pubDate>
		<guid isPermaLink="false">http://jelaniharris.com/?p=22#comment-75</guid>
		<description>@Jessica 

Hello there. I&#039;d like to help, but I&#039;m not sure what your problem is. Could you be more descriptive?</description>
		<content:encoded><![CDATA[<p>@Jessica </p>
<p>Hello there. I&#8217;d like to help, but I&#8217;m not sure what your problem is. Could you be more descriptive?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jessica Lowe</title>
		<link>http://jelaniharris.com/2008/remove-anchors-from-a-url-in-javascript/comment-page-1/#comment-74</link>
		<dc:creator>Jessica Lowe</dc:creator>
		<pubDate>Sat, 12 Dec 2009 12:36:42 +0000</pubDate>
		<guid isPermaLink="false">http://jelaniharris.com/?p=22#comment-74</guid>
		<description>Hia, I have tried to use the js code as above and it doesnt seem to be working for me.... could you please help. Thanks alot. 

Jess


test


//Grab our current Url
	var url = window.location.toString();
	//Remove anchor from url
	var anchor_index = url.indexOf(&#039;#&#039;);
    if (anchor_index != -1) {
    	url = url.substring(0, anchor_index);
    }

&lt;a href=&quot;#test&quot; rel=&quot;nofollow&quot;&gt;Test5&lt;/a&gt;

&lt;a&gt;&lt;/a&gt;This is a test

</description>
		<content:encoded><![CDATA[<p>Hia, I have tried to use the js code as above and it doesnt seem to be working for me&#8230;. could you please help. Thanks alot. </p>
<p>Jess</p>
<p>test</p>
<p>//Grab our current Url<br />
	var url = window.location.toString();<br />
	//Remove anchor from url<br />
	var anchor_index = url.indexOf(&#8216;#&#8217;);<br />
    if (anchor_index != -1) {<br />
    	url = url.substring(0, anchor_index);<br />
    }</p>
<p><a href="#test" rel="nofollow">Test5</a></p>
<p><a></a>This is a test</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan S.</title>
		<link>http://jelaniharris.com/2008/remove-anchors-from-a-url-in-javascript/comment-page-1/#comment-73</link>
		<dc:creator>Alan S.</dc:creator>
		<pubDate>Tue, 24 Nov 2009 17:59:06 +0000</pubDate>
		<guid isPermaLink="false">http://jelaniharris.com/?p=22#comment-73</guid>
		<description>Thanks for sharing and posting this bit of Javascript code! It was very helpful and worked perfectly for some similar functionality that I needed today.</description>
		<content:encoded><![CDATA[<p>Thanks for sharing and posting this bit of Javascript code! It was very helpful and worked perfectly for some similar functionality that I needed today.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jelani Harris</title>
		<link>http://jelaniharris.com/2008/remove-anchors-from-a-url-in-javascript/comment-page-1/#comment-46</link>
		<dc:creator>Jelani Harris</dc:creator>
		<pubDate>Wed, 31 Dec 2008 17:32:41 +0000</pubDate>
		<guid isPermaLink="false">http://jelaniharris.com/?p=22#comment-46</guid>
		<description>I&#039;ve never used greasemonkey, but if it&#039;s javascript then you should be able to use this code somehow.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve never used greasemonkey, but if it&#8217;s javascript then you should be able to use this code somehow.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://jelaniharris.com/2008/remove-anchors-from-a-url-in-javascript/comment-page-1/#comment-5</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 09 Oct 2008 04:14:46 +0000</pubDate>
		<guid isPermaLink="false">http://jelaniharris.com/?p=22#comment-5</guid>
		<description>Hi. I was looking for a greasemonkey userscript that would enable me to automatically cull anchors from a specific site. What I would like it to do is, on that site, when I click on a link, I should get to the page I want to see and not have any anchors in the URL. Yours was the first hit on my Google search, and I tried to use your code in a bookmarklet and tried to create a GM script as well, but it did not work. Is there any way I can use the code to make it do what I want? I&#039;d prefer an automated system of doing it, but even a bookmarklet would be very helpful. 

Thanks so much!</description>
		<content:encoded><![CDATA[<p>Hi. I was looking for a greasemonkey userscript that would enable me to automatically cull anchors from a specific site. What I would like it to do is, on that site, when I click on a link, I should get to the page I want to see and not have any anchors in the URL. Yours was the first hit on my Google search, and I tried to use your code in a bookmarklet and tried to create a GM script as well, but it did not work. Is there any way I can use the code to make it do what I want? I&#8217;d prefer an automated system of doing it, but even a bookmarklet would be very helpful. </p>
<p>Thanks so much!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
