{"id":16,"date":"2012-08-22T14:32:10","date_gmt":"2012-08-22T05:32:10","guid":{"rendered":"http:\/\/www.freesens.com\/x\/?p=16"},"modified":"2012-08-23T14:20:59","modified_gmt":"2012-08-23T05:20:59","slug":"16","status":"publish","type":"post","link":"http:\/\/www.freesens.com\/x\/?p=16","title":{"rendered":"document.location.href\uc640 document.location.replace()\uc758 \ucc28\uc774."},"content":{"rendered":"<p>\ucd9c\ucc98 :\u00a0<a href=\"http:\/\/isulnara.com\/tt\/166\" target=\"_blank\">http:\/\/isulnara.com\/tt\/166<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>.href \uc640 .repalce()\ub294 \ubaa8\ub450 location\uc758 \ud558\uc704\uac1d\ucc44\ub85c \ube0c\ub77c\uc6b0\uc800\uc5d0\uc11c URL\uc774\ub3d9\ub54c \uc4f0\uc778\ub2e4.<br \/>\n\uadf8\ub7ec\ub098 \uc4f0\ub294 \ud615\ud0dc\ub97c \ubcf4\uba74 \uc54c\uaca0\uc9c0\ub9cc .href \ub294 \ud504\ub85c\ud37c\ud2f0\uace0, .replace()\ub294 \uba54\uc18c\ub4dc\ub2e4.<\/p>\n<p><span style=\"color: #d41a01;\">location.href =<\/span>\u00a0<a href=\"http:\/\/www.naver.com\/\" target=\"_blank\">http:\/\/www.naver.com<\/a><span style=\"color: #d41a01;\">\u00a0 \u00a0 \u00a0 \u00a0 &lt;=\u00a0<strong>[1]<\/strong>\u00a0\uac12\uc744 \uc815\uc758\ud574\uc57c \ud558\ub294\ud504\ub85c\ud37c\ud2f0<br \/>\n<\/span><span style=\"color: #d41a01;\">location.replace(<\/span><a href=\"http:\/\/www.naver.com\/\" target=\"_blank\">http:\/\/www.<wbr>naver.com<\/wbr><\/a><span style=\"color: #d41a01;\">) \u00a0\u00a0 &lt;=\u00a0<strong>[2]<\/strong>\u00a0\ud30c\ub77c\ubbf8\ud130\ub85c \ub3d9\uc791\uc744 \uba85\ub839\ud558\ub294 \uba54\uc18c\ub4dc<\/span><\/p>\n<p>\uc544. \uadf8\uac8c \ubb50\uac00 \uc911\uc694\ud558\ub0d0&#8230; \ube0c\ub77c\uc6b0\uc800\uac00 \uc8fc\uc18c\ub9cc \ubc14\ub00c\uba74 \ub418\ub294\uac70 \uc544\ub0d0&#8230; \ub77c\uace0 \ud558\uaca0\uc9c0\ub9cc..\uadf8\uac8c \uc544\ub2c8\ub77c \uc774\uac70\uc9c0&#8230; \u3161 \u3161a<\/p>\n<p>\uace8\uc544\ud504\uaca0\uc9c0\ub9cc, \uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8\uc5d0\uc11c \uc815\uc758\ud55c \uc815\ud655\ud55c \uc758\ubbf8\ub97c \uc9d1\uc5b4\ubcf4\uc790.<br \/>\nlocation \uc740 \ud604\uc7ac \ube0c\ub77c\uc6b0\uc800\uc5d0 \ub5a0\uc788\ub294 URL \uc8fc\uc18c\uac12\uc5d0 \uad00\ub828\ub41c \ub0b4\uc6a9\uc744 \ub2e4\ub8e8\ub294 \uac1d\uccb4\ub2e4.<br \/>\n\ube0c\ub77c\uc6b0\uc800\uc758 \uc8fc\uc18c\ud45c\uc2dc\uc904\uc5d0 \uc788\ub294 URL\uc740 \ub2e4\uc74c\uacfc \uac19\uc774 \uc815\uc758\ub41c\ub2e4.<\/p>\n<p><strong style=\"color: #d41a01;\">protocol<\/strong><span style=\"color: #d41a01;\">\u00a0:\/\/\u00a0<\/span><strong style=\"color: #d41a01;\">hostname<\/strong><span style=\"color: #d41a01;\">\u00a0:\u00a0<\/span><strong style=\"color: #d41a01;\">port<\/strong><span style=\"color: #d41a01;\">\u00a0\/<\/span><wbr><span style=\"color: #d41a01;\">\u00a0<\/span><strong style=\"color: #d41a01;\">pathname<\/strong><span style=\"color: #d41a01;\">\u00a0?\u00a0<\/span><strong style=\"color: #d41a01;\">search<\/strong><span style=\"color: #d41a01;\">\u00a0#\u00a0<\/span><strong style=\"color: #d41a01;\">hash<\/strong><\/wbr><\/p>\n<p><strong>location.href<\/strong>\ub294 \uc704\uc5d0 \uc368\uc788\ub294 \uc804\uccb4\ub97c \uac00\ub974\ud0a4\uba70,\u00a0<strong>location.pathname<\/strong>\u00a0\uc774\ub77c\uace0 \ud558\uba74 \uac19\uc740 \uc0ac\uc774\ud2b8\uc5d0 \ud30c\uc77c\uacbd\ub85c\ub9cc\uc744 \uac00\ub974\ud0a8\ub2e4.<br \/>\n(\uc608\ub97c \ub4e4\uba74&#8230;<a href=\"http:\/\/www.naver.com\/blog\/myinfo\/profile.asp\" target=\"_blank\">http:\/\/www.naver.com\/<wbr>blog\/myinfo\/profile.asp<\/wbr><\/a><span style=\"color: #333333;\">\u00a0 \ub77c\ub294 \ud398\uc774\uc9c0\uac00 \ub5a0\uc788\ub530\uba74&#8230;\u00a0<\/span><span style=\"color: #333333;\">location.href \uc5d0\ub294 \uc774\uac70 \uc804\uccb4\uac00, location.phthname \uc5d0\ub294 [blog\/myinfo\/profile.asp] \uac00 \ub4e4\uc5b4\uc788\ub2e4.)<br \/>\n<\/span>\uadf8\ub798\uc11c\u00a0<strong>location.href<\/strong>\u00a0\ub77c\uace0 \ud558\uba74 \ube0c\ub77c\uc6b0\uc800\uc758 \uc8fc\uc18c\ud45c\uc2dc\uc904\uc5d0 \ub5a0\uc788\ub294 URL\ub97c \uac00\ub974\ud0a8\ub2e4.<br \/>\n\uadf8\ub7ec\ubbc0\ub85c\u00a0<strong>[1]<\/strong>\ucc98\ub7fc\ud558\uba74 \ube0c\ub77c\uc6b0\uc800\uc758 \uc8fc\uc18c\ud45c\uc2dc\uc904 \uac12\uc774 \ubcc0\uacbd\ub418\ubbc0\ub85c \ud398\uc774\uc9c0\uac00 \ubc14\ub00c\uac8c \ub41c\ub2e4.<br \/>\n(\ubb3c\ub860 \ud504\ub808\uc784, \uc544\uc774\ud504\ub808\uc784\uc744 \uc37c\uc744\ub550 \uadf8 \ud504\ub808\uc784\uc758 \uc8fc\uc18c\uac00 \ubc14\ub010\ub2e4.)<br \/>\n<strong>[1]<\/strong>\uc744 \ud588\uc744\u3164\u3138\u3152\u3164 \uc77c\uc5b4\ub098\ub294 \uc77c\uc740 \uc6b0\ub9ac\uac00 \uc8fc\uc18c\ud45c\uc2dc\uc904\uc5d0 \ud0a4\ubcf4\ub4dc\ub85c \uc9c1\uc811 \uc8fc\uc18c\ub97c \ub123\uace0 \uc5d4\ud130\ub97c \uce58\ub294\uac83\uacfc \uc815\ud655\ud788 \uac19\uc740 \uc77c\uc744 \uc77c\uc73c\ud0a8\ub2e4.<br \/>\n\uc5ec\uae30\uc11c \uac19\uc740 \uc77c\uc774\ub780,\u00a0\uc0c8\ub85c\uc740 \ud398\uc774\uc9c0\ub85c \uc774\ub3d9<strong>(a)<\/strong>\ub418\uace0,\u00a0[\ub4a4\ub85c]\ubc84\ud2bc\uc744 \ub204\ub974\uba74 \uc774\uc804 URL\ub85c \uc774\ub3d9<span style=\"color: #0000ff;\"><strong>(b)<\/strong><\/span>\ub418\ub294\uac83\uc744 \ub9d0\ud55c\ub2e4.<\/p>\n<p><strong>(a) , (b)<\/strong>\uc5d0 \ub300\ud574 \uc880\ub9cc\ub354 \uc790\uc138\ud788 \ubcf4\uc790.<\/p>\n<p><strong>(a)\u00a0<\/strong><strong>\uc0c8 \ub85c\uc6b4 \ud398\uc774\uc9c0\ub85c \uc774\ub3d9.<br \/>\n<\/strong>\ube0c\ub77c\uc6b0\uc800 \uc635\uc158\uc744 \uc190\ub300\uc9c0 \uc54a\uc558\uc744\ub54c, \ube0c\ub77c\uc6b0\uc800\uc758 \uc8fc\uc18c\uac12\uc774 \ubc14\ub00c\uba74 \ube0c\ub77c\uc6b0\uc800\ub294\u00a0<strong>&#8216; \uc778\ud130\ub137 \uc784\uc2dc\ud30c\uc77c&#8217;\u00a0<\/strong><span style=\"color: #8e8e8e;\">(C:\\Documents and Settings\\Administrator\\Local Settings\\Temporary Internet Files\\)\u00a0<\/span>\uc5d0 \uce90\uc26c\uac00 \uc788\ub294\uc9c0\ub97c \uba3c\uc800 \ubcf4\uace0, \uc788\uc73c\uba74 \uadf8\uac78 \ubcf4\uc5ec\uc900\ub2e4.<br \/>\n\uadf8\ub798\uc11c \uac00\ub054 \uc6b0\ub9b0 \uc0ac\uc774\ud2b8\ub0b4\uc6a9\uc774 \ubc14\ub00c\uc5c8\ub294\ub370\ub3c4, \ub85c\uceec\uc5d0 \uc788\ub294 \ud30c\uc77c\uc744 \ubcf4\ub294 \uacbd\uc6b0\uac00 \uc788\ub2e4.<br \/>\n<strong>location.href<\/strong>\ub85c \uc8fc\uc18c\uc774\ub3d9\uc744 \ud588\uc744\u3164\u3138\u3152\u3164 \uc774\uc640 \uac19\uc740 \uc77c\uc774 \uc77c\uc5b4\ub09c\ub2e4.<\/p>\n<p><strong>(b)<\/strong>\u00a0<strong>[\ub4a4\ub85c]\ubc84\ud2bc\uc744 \ub204\ub974\uba74 \uc774\uc804 URL\ub85c \uc774\ub3d9.<br \/>\n<\/strong>[\ub4a4\ub85c]\ubc84\ud2bc\uc774 \uc815\uc0c1\uc7a5\ub3d9\ub418\ub294\uac83\uc740\u00a0<strong>History<\/strong>\uac1d\uccb4 \uc5d0 \ubc30\uc5f4\ucc98\ub7fc \uc774\uc804 URL\ub4e4\uc774 \uae30\ub85d\ub418\uc5b4\uc788\uae30\ub54c\ubb38\uc774\ub2e4.<br \/>\n\uc6b0\ub9ac\uac00 [\ub4a4\ub85c]\ubc84\ud2bc\uc744 \ub204\ub974\ub294\uac74\u00a0<strong>History<\/strong>\uac1d\uccb4 \ub97c \uc5ed\uc21c\uc73c\ub85c \ub418\uc9d1\uc5b4 \uac00\ub294 \uacfc\uc815\uc774\ub2e4.\u00a0<span style=\"color: #8e8e8e;\">( history.back()\uc774 \uadf8 \uc77c\uc744 \ud55c\ub2e4. )<br \/>\n<\/span><strong>location.href<\/strong>\ub97c \uc4f0\uba74 [\ub4a4\ub85c]\ubc84\ud2bc\ub3c4\u00a0<strong>history.back()<\/strong>\ub3c4 \uc9c1\uc811URL\ubc14\uafe8\uc744\ub54c\uc640 \ub611\uac19\uc774 \uc791\ub3d9\ud55c\ub2e4.<\/p>\n<p>\uadf8\ub7fc\u00a0<strong>location.replace()<\/strong>\ub294 \ubb50\uac00 \ub2e4\ub97c\uae4c?<br \/>\n<strong>location.repalce()<\/strong>\ub294 \ub2e4\uc74c\uacfc \uac19\uc774 \uc791\ub3d9\ud55c\ub2e4.<\/p>\n<p>1.\u00a0<strong>location.replace()<\/strong>\ub294\u00a0<span style=\"color: #0000ff;\"><strong>(a)<\/strong><\/span>\uc758 \uacbd\uc6b0 \u00a0&#8216;\uc778\ud130\ub137 \uc784\uc2dc\ud30c\uc77c&#8217;\uc744 \uc4f0\uc9c0 \uc54a\ub294\ub2e4. \ub9e4\uc18c\ub4dc\uac00 \uc2e4\ud589\ub420\ub54c\ub9c8\ub2e4 \ub9e4\ubc88 \uc11c\ubc84\uc5d0 \uc811\uc18d\ud574\uc11c \ud398\uc774\uc9c0\ub97c \uac00\uc838\uc628\ub2e4. \uac8c\uc2dc\ud310 \ub9ac\uc2a4\ud2b8\uac19\uc740 \uacf3\uc744 \uc774\ub3d9\ud560\ub54c\u00a0<strong>location.href<\/strong>\ub97c \uc4f0\uba74 \uc0c8 \uae00\uc774 \uc62c\ub77c\uc628\uac83\uc744 \ubaa8\ub974\uace0 &#8216;\ub85c\uceec\uc5d0 \uc788\ub294 \ud30c\uc77c&#8217;\ub9cc \ubcf4\ub294 \uc77c\uc774 \uc0dd\uae38 \uc218 \uc788\ub294\ub370,\u00a0<strong>location.replace()<\/strong>\ub97c \uc4f0\uba74 \uc774\ub97c \ubc29\uc9c0\ud560 \uc218 \uc788\ub2e4.<\/p>\n<p>2.\u00a0<strong>location.replace()<\/strong>\uc740 \uc0c8 \ud398\uc774\uc9c0\ub85c \uc774\ub3d9\ud558\ub294\uac8c \uc544\ub2c8\ub77c \ud604\uc7ac\ud398\uc774\uc9c0\ub97c \ubc14\uafd4\uc8fc\ub294 \uac70\ub2e4.<br \/>\n\ub9d0\uc7a5\ub09c \uac19\uc544\ub3c4 \uc774\uac70 \uc911\uc694\ud55c\uac70\ub2e4.. \uc65c\uc911\uc694\ud55c\uace0\ud558\ub2c8&#8230;<br \/>\n<strong>(b)<\/strong>\uc758 \uacbd\uc6b0,\u00a0<strong>History<\/strong>\uac1d\uccb4 \uc5d0 \uc0c8\ub85c\uc6b4 URL\ub97c \uae30\ub85d\ud558\ub294\uac8c \uc544\ub2c8\ub77c \ud604\uc7ac \ud398\uc774\uc9c0\uac12\uc744 \ubc14\uafbc\ub2e4.<br \/>\n\uadf8\ub7ec\ubbc0\ub85c\u00a0<strong>location.replace()<\/strong>\ub85c \uc774\ub3d9\ud558\uace0 [\ub4a4\ub85c]\ubc84\ud2bc\uc744 \ub204\ub974\uba74 \uc774\uc804\ud398\uc774\uc9c0\uac00 \uc544\ub2c8\ub77c \uc774\uc804,\uc774\uc804\ud398\uc774\uc9c0\uac00 \ub72c\ub2e4. \uc774\ud574\uac00 \uc548\ub41c\ub2e4\uace0?<\/p>\n<p><strong style=\"color: #993366;\">A &#8211;&gt; B &#8211;&gt; C<\/strong><span style=\"color: #993366;\">\u00a0 \u00a0 \ucc98\ub7fc \ud398\uc774\uc9c0\uac00 \uc774\ub3d9\uc744 \ud588\ub2e4\ud558\uc790. (\ud604\uc7ac \ub2f9\uc2e0\uc740 C\uc0ac\uc774\ud2b8\uc5d0&#8230;)<br \/>\n<\/span><span style=\"text-decoration: underline;\">B &#8211;&gt; C\ub85c \uc774\ub3d9\ud560\ub54c<\/span><span style=\"color: #993366;\">\u00a0<\/span><strong style=\"color: #993366;\">location.href<\/strong><span style=\"color: #993366;\">\ub97c \uc37c\ub2e4\uba74\u00a0<\/span><strong style=\"color: #993366;\"><span style=\"font-size: medium;\">C<\/span><\/strong><span style=\"color: #993366;\">\ud398\uc774\uc9c0\ud2b8\uc5d0\uc11c [\ub4a4\ub85c]\ubc84\ud2bc\uc744 \ub204\ub974\uba74\u00a0<\/span><strong style=\"color: #993366;\"><span style=\"font-size: medium;\">B<\/span><\/strong><span style=\"color: #993366;\">\uac00 \ub72c\ub2e4.<br \/>\n<\/span><span style=\"color: #993366;\">\ud558\uc9c0 \ub9cc..<br \/>\n<\/span><span style=\"text-decoration: underline;\">B &#8211;&gt; C\ub85c \uc774\ub3d9\ud560\ub54c<\/span><span style=\"color: #993366;\">\u00a0<\/span><strong style=\"color: #993366;\">location.replace()<\/strong><span style=\"color: #993366;\">\ub97c \uc37c\ub2e4\uba74\u00a0<\/span><strong style=\"color: #993366;\"><span style=\"font-size: medium;\">C<\/span><\/strong><span style=\"color: #993366;\">\ud398\uc774\uc9c0\uc5d0\uc11c [\ub4a4\ub85c]\ubc84\ud2bc\uc744 \ub204\ub974\uba74\u00a0<\/span><span style=\"font-size: medium;\"><strong>A<\/strong><\/span><span style=\"color: #993366;\">\uac00 \ub72c\ub2e4.<br \/>\n<\/span><span style=\"color: #993366;\">\uadf8\ub7fc \uc0ac\uc6a9\uc790\uc785\uc7a5\uc5d0\uc120 &#8216;\uc5b4 \ub0b4\uac00 \ud074\ub9ad\uc744 \ub450\ubc88\ud588\ub098?&#8217; \ud558\uac8c \ub41c\ub2e4&#8230;<\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ucd9c\ucc98 :\u00a0<a href=\"http:\/\/isulnara.com\/tt\/166\" target=\"_blank\">http:\/\/isulnara.com\/tt\/166<\/a> <\/p>\n<p>\u00a0 <\/p>\n<p>.href \uc640 .repalce()\ub294 \ubaa8\ub450 location\uc758 \ud558\uc704\uac1d\ucc44\ub85c \ube0c\ub77c\uc6b0\uc800\uc5d0\uc11c URL\uc774\ub3d9\ub54c \uc4f0\uc778\ub2e4.<br \/>\n\uadf8\ub7ec\ub098 \uc4f0\ub294 \ud615\ud0dc\ub97c \ubcf4\uba74 \uc54c\uaca0\uc9c0\ub9cc .href \ub294 \ud504\ub85c\ud37c\ud2f0\uace0, .replace()\ub294 \uba54\uc18c\ub4dc\ub2e4. <\/p>\n<p><span style=\"color: #d41a01;\">location.href =<\/span>\u00a0<a href=\"http:\/\/www.naver.com\/\" target=\"_blank\">http:\/\/www.naver.com<\/a><span style=\"color: #d41a01;\">\u00a0 \u00a0 \u00a0 \u00a0 < =\u00a0<strong>[1]\u00a0\uac12\uc744 \uc815\uc758\ud574\uc57c \ud558\ub294\ud504\ub85c\ud37c\ud2f0<br \/>\n<\/span><span style=\"color: #d41a01;\">location.replace(<\/span><a href=\"http:\/\/www.naver.com\/\" target=\"_blank\">http:\/\/www.naver.com<\/a><span style=\"color: #d41a01;\">) \u00a0\u00a0 < =\u00a0<strong>[2]\u00a0\ud30c\ub77c\ubbf8\ud130\ub85c \ub3d9\uc791\uc744 \uba85\ub839\ud558\ub294 \uba54\uc18c\ub4dc<\/span> <\/p>\n<p>\uc544. \uadf8\uac8c \ubb50\uac00 \uc911\uc694\ud558\ub0d0&#8230; \ube0c\ub77c\uc6b0\uc800\uac00 \uc8fc\uc18c\ub9cc \ubc14\ub00c\uba74 \ub418\ub294\uac70 \uc544\ub0d0&#8230; \ub77c\uace0 \ud558\uaca0\uc9c0\ub9cc..\uadf8\uac8c \uc544\ub2c8\ub77c \uc774\uac70\uc9c0&#8230; \u3161 \u3161a<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,6],"tags":[],"class_list":["post-16","post","type-post","status-publish","format-standard","hentry","category-development","category-javascript"],"_links":{"self":[{"href":"http:\/\/www.freesens.com\/x\/index.php?rest_route=\/wp\/v2\/posts\/16","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.freesens.com\/x\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.freesens.com\/x\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.freesens.com\/x\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.freesens.com\/x\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=16"}],"version-history":[{"count":5,"href":"http:\/\/www.freesens.com\/x\/index.php?rest_route=\/wp\/v2\/posts\/16\/revisions"}],"predecessor-version":[{"id":57,"href":"http:\/\/www.freesens.com\/x\/index.php?rest_route=\/wp\/v2\/posts\/16\/revisions\/57"}],"wp:attachment":[{"href":"http:\/\/www.freesens.com\/x\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.freesens.com\/x\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.freesens.com\/x\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}