﻿
{"id":3506,"date":"2016-01-28T03:31:03","date_gmt":"2016-01-28T03:31:03","guid":{"rendered":"http:\/\/www.gencayyildiz.com\/blog\/?p=3506"},"modified":"2016-01-28T03:31:03","modified_gmt":"2016-01-28T03:31:03","slug":"jquery-ile-yonlendirmeredirect-islemi","status":"publish","type":"post","link":"https:\/\/www.gencayyildiz.com\/blog\/jquery-ile-yonlendirmeredirect-islemi\/","title":{"rendered":"jQuery \u0130le Y\u00f6nlendirme(Redirect) \u0130\u015flemi"},"content":{"rendered":"<div id=\"fb-root\"><\/div>\n<p>jQuery ile sayfa y\u00f6nlendirmek i\u00e7in a\u015fa\u011f\u0131daki komutlar\u0131 kullanabilirsiniz.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$(location).attr('href', 'http:\/\/www.gencayyildiz.com')\r\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$(window).attr('location', 'http:\/\/www.gencayyildiz.com')\r\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$(location).prop('href', 'http:\/\/www.gencayyildiz.com')\r\n<\/pre>\n<p>Ayn\u0131 i\u015flem i\u00e7in Windows k\u00fct\u00fcphanesinide kullanabiliriz.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\/\/Bu komut http'ye benzer bir y\u00f6nlendirme i\u015flevi sa\u011flamaktad\u0131r.\r\nwindow.location.replace('http:\/\/www.gencayyildiz.com')\r\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nwindow.location.assign('http:\/\/www.gencayyildiz.com')\r\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\/\/Bu komut bir &lt;a .. &gt; ba\u011flant\u0131s\u0131na benzer davran\u0131\u015f sergilemektedir.\r\nwindow.location.href = 'http:\/\/www.gencayyildiz.com';\r\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\ndocument.location.href = 'http:\/\/www.gencayyildiz.com';\r\n<\/pre>\n<p>Farkl\u0131 komutlarlar ile&#8230;<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nself.location = 'http:\/\/www.gencayyildiz.com';\r\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\ntop.location = 'http:\/\/www.gencayyildiz.com';\r\n<\/pre>\n<p>Haz\u0131r buraya kadar gelmi\u015fken JavaScript ile geri ve ileri komutlar\u0131ndan da bahsedelim&#8230;<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\/\/Bu komut ile bir \u00f6nceki sayfaya gidersiniz.\r\nwindow.history.back();\r\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\/\/Ayn\u0131 mant\u0131kta bu komut ilede bir \u00f6nceki sayfaya gidersiniz.\r\nwindow.history.go(-1)\r\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\/\/Benzer mant\u0131kta bu komut ilede bir sonraki sayfaya gidersiniz.\r\nwindow.history.go(+1)\r\n<\/pre>\n<p>\u0130yi \u00e7al\u0131\u015fmalar dilerim&#8230;<\/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>jQuery ile sayfa y\u00f6nlendirmek i\u00e7in a\u015fa\u011f\u0131daki komutlar\u0131 kullanabilirsiniz. $(location).attr(&#8216;href&#8217;, &#8216;http:\/\/www.gencayyildiz.com&#8217;) $(window).attr(&#8216;location&#8217;, &#8216;http:\/\/www.gencayyildiz.com&#8217;) $(location).prop(&#8216;href&#8217;, &#8216;http:\/\/www.gencayyildiz.com&#8217;) Ayn\u0131 i\u015flem i\u00e7in Windows k\u00fct\u00fcphanesinide kullanabiliriz. \/\/Bu komut http&#8217;ye benzer bir y\u00f6nlendirme i\u015flevi sa\u011flamaktad\u0131r. window.location.replace(&#8216;http:\/\/www.gencayyildiz.com&#8217;) window.location.assign(&#8216;http:\/\/www.gencayyildiz.com&#8217;) \/\/Bu komut bir &lt;a&#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":3401,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,19],"tags":[748,884,886,885],"class_list":["post-3506","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript","category-jquery","tag-jquery","tag-redirect","tag-sayfa-yonlendirme","tag-yonlendirme"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/3506","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=3506"}],"version-history":[{"count":0,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/3506\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/media\/3401"}],"wp:attachment":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/media?parent=3506"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/categories?post=3506"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/tags?post=3506"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}