<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>StudyJava.org &#187; Disable all links</title>
	<atom:link href="http://studyjava.org/tag/disable-all-links/feed" rel="self" type="application/rss+xml" />
	<link>http://studyjava.org</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Mon, 05 Apr 2010 11:49:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Disable all links using javascript</title>
		<link>http://studyjava.org/client-side-scripts/disable-all-links-using-javascript</link>
		<comments>http://studyjava.org/client-side-scripts/disable-all-links-using-javascript#comments</comments>
		<pubDate>Fri, 25 Sep 2009 04:16:07 +0000</pubDate>
		<dc:creator>rathi</dc:creator>
				<category><![CDATA[Client Side  Scripts]]></category>
		<category><![CDATA[Disable all links]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://studyjava.org/?p=235</guid>
		<description><![CDATA[Disable all links using javascript function DisableEnableLinks(xHow){ objLinks = document.links; for(i=0;i objLinks[i].disabled = xHow; //link with onclick if(objLinks[i].onclick and xHow){ //replace the and by &#38;&#38; objLinks[i].onclick = new Function(&#8220;return false;&#8221; + objLinks[i].onclick.toString().getFuncBody()); } //link without onclick else if(xHow){ objLinks[i].onclick = function(){return false;} } //remove return false with link without onclick else if(!xHow &#38;&#38; objLinks[i].onclick.toString().indexOf(&#8220;function(){return false;}&#8221;) [...]]]></description>
			<content:encoded><![CDATA[<p>Disable all links using javascript</p>
<p>function DisableEnableLinks(xHow){<br />
objLinks = document.links;<br />
for(i=0;i</p>
<p>objLinks[i].disabled = xHow;<br />
//link with onclick<br />
if(objLinks[i].onclick and xHow){ //replace the and by &amp;&amp;<br />
objLinks[i].onclick = new Function(&#8220;return false;&#8221; + objLinks[i].onclick.toString().getFuncBody());<br />
}<br />
//link without onclick<br />
else if(xHow){<br />
objLinks[i].onclick = function(){return false;}<br />
}<br />
//remove return false with link without onclick<br />
else if(!xHow &amp;&amp; objLinks[i].onclick.toString().indexOf(&#8220;function(){return false;}&#8221;) != -1){<br />
objLinks[i].onclick = null;<br />
}<br />
//remove return false link with onclick<br />
else if(!xHow &amp;&amp; objLinks[i].onclick.toString().indexOf(&#8220;return false;&#8221;) != -1){<br />
strClick = objLinks[i].onclick.toString().getFuncBody().replace(&#8220;return false;&#8221;,&#8221;");<br />
objLinks[i].onclick = new Function(strClick);<br />
}</p>
<p>}<br />
}</p>
<div id="st0000000001" class="st-taf"><script src="http://taf.socialtwist.com:80/taf/js/shoppr.core.js?id=0000000001"></script><img style="border:0;margin:0;padding:0;" src="http://tellafriend.socialtwist.com:80/wizard/images/tafbutton_blue16.png" onmouseout="hideHoverMap(this)" onmouseover="showHoverMap(this, '0000000001', 'http%3A%2F%2Fstudyjava.org%2Fclient-side-scripts%2Fdisable-all-links-using-javascript', 'Disable+all+links+using+javascript')" onclick="cw(this, {id:'0000000001',link: 'http%3A%2F%2Fstudyjava.org%2Fclient-side-scripts%2Fdisable-all-links-using-javascript', title: '+Disable+all+links+using+javascript+' })"/></div>]]></content:encoded>
			<wfw:commentRss>http://studyjava.org/client-side-scripts/disable-all-links-using-javascript/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

