﻿
{"id":2510,"date":"2014-02-26T11:02:58","date_gmt":"2014-02-26T11:02:58","guid":{"rendered":"http:\/\/www.gencayyildiz.com\/blog\/?p=2510"},"modified":"2014-02-26T11:02:58","modified_gmt":"2014-02-26T11:02:58","slug":"javascript-textte-tiklayinca-yazi-silme","status":"publish","type":"post","link":"https:\/\/www.gencayyildiz.com\/blog\/javascript-textte-tiklayinca-yazi-silme\/","title":{"rendered":"JavaScript &#8211; Text&#8217;te T\u0131klay\u0131nca Yaz\u0131 Silme"},"content":{"rendered":"<div id=\"fb-root\"><\/div>\n<p>Web dal\u0131nda ne yaz\u0131k ki hayat\u0131m\u0131za derinden n\u00fcfus eden JavaScript&#8217;in olduk\u00e7a basit ve ufak tefek teknik i\u015flevlerini bilmemizde olduk\u00e7a fayda vard\u0131r.Yapt\u0131\u011f\u0131m\u0131z i\u015fe hem g\u00f6rsel hemde i\u015flevsellik a\u00e7\u0131s\u0131ndan b\u00fcy\u00fck katk\u0131lar\u0131 oldu\u011fu i\u00e7in bu tarz tekniklere ben \u00e7ok \u00f6nem vermekteyim.Tabi ki de JavaScript&#8217;i bilip \u00f6zg\u00fcn bir \u015fekilde kod yazabilme kabiliyetine sahip olmak ayr\u0131 bir ayr\u0131cal\u0131kt\u0131r.<\/p>\n<p>Bu yaz\u0131mda basit bir i\u015flevin nas\u0131l yap\u0131laca\u011f\u0131ndan bahsedece\u011fim.Bir text i\u00e7inde yaz\u0131l\u0131 olan metinin t\u0131kland\u0131\u011f\u0131 anda silinmesini ve ard\u0131ndan yine o text bo\u015f b\u0131rak\u0131l\u0131yorsa yeniden ilk olan yaz\u0131n\u0131n yaz\u0131labilmesini sa\u011flayan basit bir JavaScript kodunu payla\u015faca\u011f\u0131m.<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n &lt;input type=&quot;text&quot; name=&quot;txtAd&quot; value=&quot;Ad\u0131n\u0131z&quot; onclick=&quot;if (this.value == 'Ad\u0131n\u0131z') this.value = '';&quot; onblur=&quot;    if (this.value == '') this.value = 'Ad\u0131n\u0131z';&quot;\/&gt;\r\n<\/pre>\n<p>G\u00f6rd\u00fc\u011f\u00fcn\u00fcz gibi bir textin i\u00e7inde &#8220;Ad\u0131n\u0131z&#8221; de\u011feri yaz\u0131yorsa e\u011fer t\u0131kland\u0131\u011f\u0131 zaman silinecektir.E\u011fer ki, o text bo\u015f b\u0131rak\u0131l\u0131rsa &#8220;Ad\u0131n\u0131z&#8221; de\u011feri yeniden yazd\u0131r\u0131lacakt\u0131r.<\/p>\n<p>\u0130yi \u00e7al\u0131\u015fmalar..<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Web dal\u0131nda ne yaz\u0131k ki hayat\u0131m\u0131za derinden n\u00fcfus eden JavaScript&#8217;in olduk\u00e7a basit ve ufak tefek teknik i\u015flevlerini bilmemizde olduk\u00e7a fayda vard\u0131r.Yapt\u0131\u011f\u0131m\u0131z i\u015fe hem g\u00f6rsel hemde i\u015flevsellik a\u00e7\u0131s\u0131ndan b\u00fcy\u00fck katk\u0131lar\u0131 oldu\u011fu i\u00e7in bu tarz tekniklere&#46;&#46;&#46;<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,19],"tags":[265,567,335],"class_list":["post-2510","post","type-post","status-publish","format-standard","hentry","category-javascript","category-jquery","tag-javascript-2","tag-text","tag-value"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/2510","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/comments?post=2510"}],"version-history":[{"count":0,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/2510\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/media?parent=2510"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/categories?post=2510"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/tags?post=2510"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}