<?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>Zihni Kaya &#187; setAttribute</title>
	<atom:link href="http://www.zihni.net/tag/setattribute/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zihni.net</link>
	<description></description>
	<lastBuildDate>Wed, 16 Nov 2011 07:22:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>setAttribute() Metodu</title>
		<link>http://www.zihni.net/dom/setattribute-yontemi/</link>
		<comments>http://www.zihni.net/dom/setattribute-yontemi/#comments</comments>
		<pubDate>Tue, 22 Jul 2008 18:40:08 +0000</pubDate>
		<dc:creator>Zihni</dc:creator>
				<category><![CDATA[Document Object Model]]></category>
		<category><![CDATA[setAttribute]]></category>

		<guid isPermaLink="false">http://www.zihni.net/?p=69</guid>
		<description><![CDATA[Sözdizimi: eleman.setAttribute(ad, deger); Elemanlara yeni nitelik ekler veya varolan elamanın niteliğini değiştirir. adi parametresiyle niteliğin adı belirtilir. deger parametresiyle niteliğin değeri girilir. &#60;input id=&#34;txtAdi&#34; type=&#34;text&#34; /&#62; Yukardaki gibi bir input elemanımız olsun, value niteliğini Atatürk yapalım. document.getElementById&#40;&#34;txtAdi&#34;&#41;.setAttribute&#40;&#34;value&#34;, &#34;Atatürk&#34;&#41;;]]></description>
			<content:encoded><![CDATA[<p>Sözdizimi:</p>
<p><code>eleman.setAttribute(ad, deger);</code></p>
<p>Elemanlara yeni nitelik ekler veya varolan elamanın niteliğini değiştirir.</p>
<p>adi parametresiyle niteliğin adı belirtilir.<br />
deger parametresiyle niteliğin değeri girilir.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>input id<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;txtAdi&quot;</span> type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text&quot;</span> <span style="color: #339933;">/&gt;</span></pre></div></div>

<p>Yukardaki gibi bir input elemanımız olsun, value niteliğini Atatürk yapalım.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;txtAdi&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">setAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;value&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;Atatürk&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.zihni.net/dom/setattribute-yontemi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

