<?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>You Look Too Cool &#187; ブックマークレット</title>
	<atom:link href="http://stabucky.com/wp/archives/tag/%e3%83%96%e3%83%83%e3%82%af%e3%83%9e%e3%83%bc%e3%82%af%e3%83%ac%e3%83%83%e3%83%88/feed" rel="self" type="application/rss+xml" />
	<link>http://stabucky.com/wp</link>
	<description>ゆるくつくる - stabuckyのブログ。</description>
	<lastBuildDate>Thu, 17 May 2012 12:09:09 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>GoogleとBingを相互に遷移するブックマークレット</title>
		<link>http://stabucky.com/wp/archives/3815</link>
		<comments>http://stabucky.com/wp/archives/3815#comments</comments>
		<pubDate>Fri, 27 Jan 2012 22:11:40 +0000</pubDate>
		<dc:creator>stabucky</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Bing]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[ブックマークレット]]></category>

		<guid isPermaLink="false">http://stabucky.com/wp/?p=3815</guid>
		<description><![CDATA[最近はGoogleよりもBingの方が良いという意見を目にします。 そこでGoogle検索結果が納得できないときに、Bingで検索するためのブックマークレットを考えてみました。 Googleの検察結果のページのURLには「q=言葉」という部分があります。 実行すると、これをBingの検察結果のページのURLに当てはめて表示します。 なお逆にBingの検察結果で実行するとGoogleの検索結果が表示されます。 ブックマークレットを次に示します。 bing-google Firefoxならばブックマークツールバーまでドラッグしてください。 Internet Explorerならば右クリックからお気に入りに保存してください。 javascript:&#40;function&#40;&#41;&#123;b=&#34;http://www.bing.com/search&#34;;g=&#34;http://www.google.co.jp/search&#34;;d=document.location;if&#40;d.href.match&#40;b&#41;&#41;&#123;u=g&#125;else&#123;u=b&#125;d.href=u+&#34;?q=&#34;+d.href.replace&#40;/.*[&#38;\?]q=(.*?)&#38;?/,&#34;$1&#34;&#41;&#125;&#41;&#40;&#41; 改行を施したのが次です。 javascript:&#40;function&#40;&#41;&#123; &#160; &#160; b=&#34;http://www.bing.com/search&#34;; &#160; &#160; g=&#34;http://www.google.co.jp/search&#34;; &#160; &#160; d=document.location; &#160; &#160; if&#40;d.href.match&#40;b&#41;&#41;&#123; &#160; &#160; &#160; &#160; u=g &#160; &#160; &#125;else&#123; &#160; &#160; &#160; &#160; u=b &#160; &#160; &#125; &#160; &#160; d.href=u+&#34;?q=&#34;+d.href.replace&#40;/.*[&#38;\?]q=(.*?)&#38;?/,&#34;$1&#34;&#41; &#125;&#41;&#40;&#41;]]></description>
		<wfw:commentRss>http://stabucky.com/wp/archives/3815/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>右クリックと文字列選択を禁止する方法とそれを無効にするブックマークレット</title>
		<link>http://stabucky.com/wp/archives/3668</link>
		<comments>http://stabucky.com/wp/archives/3668#comments</comments>
		<pubDate>Thu, 05 Jan 2012 09:47:25 +0000</pubDate>
		<dc:creator>stabucky</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[ブックマークレット]]></category>

		<guid isPermaLink="false">http://stabucky.com/wp/?p=3668</guid>
		<description><![CDATA[ウェブページの文字列をコピーされないようにする方法として、右クリックを禁止する方法と文字列の選択を禁止する方法が考えられます。 右クリック禁止 右クリックを禁止するにはHTMLを次のように書きます。 &#60;div oncontextmenu=&#34;return false;&#34;&#62;テキスト&#60;/div&#62; 右クリックをして表示されるメニューを「コンテキストメニュー」などと言いますが、これを無効にします。 「div」でなく「body」にこれを設定するとウェブページ全体で右クリックができなくなります。 文字列選択禁止 文字列の選択を禁止するには次のように書きます。 &#60;div onselectstart=&#34;return false;&#34;&#62;テキスト&#60;/div&#62; 文字列を選択しようとしてもできません。 これも「body」に設定するとウェブページ全体で文字列選択ができなくなります。 ※IE限定ですが「unselectable=&#8221;on&#8221;」を使う方法もあります。 無効にするブックマークレット これらを無効にするブックマークレットを考えてみました。]]></description>
		<wfw:commentRss>http://stabucky.com/wp/archives/3668/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>テキストボックスを操作するブックマークレット</title>
		<link>http://stabucky.com/wp/archives/3590</link>
		<comments>http://stabucky.com/wp/archives/3590#comments</comments>
		<pubDate>Sun, 18 Dec 2011 06:13:56 +0000</pubDate>
		<dc:creator>stabucky</dc:creator>
				<category><![CDATA[デジタル]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[ブックマークレット]]></category>

		<guid isPermaLink="false">http://stabucky.com/wp/?p=3590</guid>
		<description><![CDATA[テキストボックスを操作するブックマークレットのサンプルです。 これをアレンジすれば色々と使えると思います。 IE、Firefox、Chromeで動作確認しました。 削除 「t0」というIDが付いたテキストボックスを操作します。 テキストボックスのテキストから「bbb」という文字列を削除します。 javascript:(function(){a=document.getElementById('t0');a.value=a.value.replace(/bbb/g,'');})() 追加 テキストボックスのテキストに「bbb」という文字列を追加します。 javascript:(function(){a=document.getElementById('t0');a.value=a.value+'bbb';})()]]></description>
		<wfw:commentRss>http://stabucky.com/wp/archives/3590/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>和暦を西暦に変換して追加するブックマークレット</title>
		<link>http://stabucky.com/wp/archives/3008</link>
		<comments>http://stabucky.com/wp/archives/3008#comments</comments>
		<pubDate>Thu, 30 Jun 2011 13:32:37 +0000</pubDate>
		<dc:creator>stabucky</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[ブックマークレット]]></category>
		<category><![CDATA[元号]]></category>
		<category><![CDATA[和暦]]></category>
		<category><![CDATA[西暦]]></category>

		<guid isPermaLink="false">http://stabucky.com/wp/?p=3008</guid>
		<description><![CDATA[ウェブページ上にある「平成23年」という文字列を西暦に換算し「平成23年(2011年)」に置換して表示するブックマークレットを作りました。 IE6の文字制限である508文字に合わせたので、寛保元年(西暦1741年)以降に対応します。 javascript:(function(){o=document.getElementsByTagName('body')[0];s=o.innerHTML;s=s.replace(/元年/g,'1年');g='寛保,延享,寛延,宝暦,明和,安永,天明,寛政,享和,文化,文政,天保,弘化,嘉永,安政,万延,文久,元治,慶応,明治,大正,昭和,平成'.split(',');ys=[1740,1743,1747,1750,1763,1771,1780,1788,1800,1803,1817,1829,1843,1847,1853,1859,1860,1863,1864,1867,1911,1925,1988];r=new RegExp('('+g.join('&#124;')+')([0-9]+)年','g');s=s.replace(r,function($0,$1,$2){for(i=0;i&#60;g.length;i++){if($1==g[i]){yz=ys[i];}}return($1+$2+'年('+(parseInt($2)+parseInt(yz))+'年)')});o.innerHTML=s;})() ジャスト508文字です。 適当に改行を入れると次のようになります。 まだ工夫の余地があるような気がしますが。 o=document.getElementsByTagName&#40;'body'&#41;&#91;0&#93;; s=o.innerHTML;s=s.replace&#40;/元年/g,'1年'&#41;; g='寛保,延享,寛延,宝暦,明和,安永,天明,寛政,享和,文化,文政,天保,弘化,嘉永,安政,万延,文久,元治,慶応,明治,大正,昭和,平成'.split&#40;','&#41;; ys=&#91;1740,1743,1747,1750,1763,1771,1780,1788,1800,1803,1817,1829,1843,1847,1853,1859,1860,1863,1864,1867,1911,1925,1988&#93;; r=new RegExp&#40;'('+g.join&#40;'&#124;'&#41;+')([0-9]+)年','g'&#41;; s=s.replace&#40;r,function&#40;$0,$1,$2&#41;&#123; &#160; &#160; for&#40;i=0;i&#60;g.length;i++&#41;&#123; &#160; &#160; &#160; &#160; if&#40;$1==g&#91;i&#93;&#41;&#123; &#160; &#160; &#160; &#160; &#160; &#160; yz=ys&#91;i&#93;; &#160; &#160; &#160; &#160; &#125; &#160; &#160; &#125; &#160; &#160; return&#40;$1+$2+'年('+&#40;parseInt&#40;$2&#41;+parseInt&#40;yz&#41;&#41;+'年)'&#41;&#125;&#41;; o.innerHTML=s; 最近のブラウザならばもっと多くの文字数でも大丈夫そうです。 すべての元号、つまり大化元年以降に対応してみました。 2178文字。 Firefoxで使えることを確認しました。 javascript:(function(){o=document.getElementsByTagName('body')[0];s=o.innerHTML;s=s.replace(/元年/g,'1年');g='大化,白雉,朱鳥,大宝,慶雲,和銅,霊亀,養老,神亀,天平,天平勝宝,天平宝字,天平神護,神護景雲,宝亀,天応,延歴,大同,弘仁,天長,承和,嘉祥,仁寿,斉衡,天安,貞観,元慶,仁和,寛平,昌泰,延喜,延長,承平,天慶,天暦,天徳,応和,康保,安和,天禄,天延,貞元,天元,永観,寛和,永延,永祚,正暦,長徳,長保,寛弘,長和,寛仁,治安,万寿,長元,長暦,長久,寛徳,永承,天喜,康平,治暦,延久,承保,承暦,永保,応徳,寛治,嘉保,永長,承徳,康和,長治,嘉承,天仁,天永,永久,元永,保安,天治,大治,天承,長承,保延,永治,康治,天養,久安,仁平,久寿,保元,平治,永暦,応保,長寛,永万,仁安,嘉応,承安,安元,治承,養和,寿永,元暦,文治,建久,正治,建仁,元久,建永,承元,建暦,健保,承久,貞応,元仁,嘉禄,安貞,寛喜,貞永,天福,文暦,嘉禎,暦仁,延応,仁治,寛元,宝治,建長,康元,正嘉,正元,文応,弘長,文永,建治,弘安,正応,永仁,正安,乾元,嘉元,徳治,延慶,応長,正和,文保,元応,元亨,正中,嘉暦,元徳,正慶,建武,暦応,康永,貞和,観応,文和,延文,康安,貞治,応安,永和,康暦,永徳,至徳,嘉慶,康応,明徳,応永,正長,永享,嘉吉,文安,宝徳,享徳,康正,長禄,寛正,文正,応仁,文明,長享,延徳,明応,文亀,永正,大永,享禄,天文,弘治,永禄,元亀,天正,文禄,慶長,元和,寛永,正保,慶安,承応,明暦,万治,寛文,延宝,天和,貞享,元禄,宝永,正徳,享保,元文,寛保,延享,寛延,宝暦,明和,安永,天明,寛政,享和,文化,文政,天保,弘化,嘉永,安政,万延,文久,元治,慶応,明治,大正,昭和,平成'.split(',');ys=[644,649,685,700,703,707,714,716,723,728,748,756,764,766,769,780,781,805,809,823,833,847,850,853,856,858,876,884,888,897,900,922,930,937,946,956,960,963,967,969,972,975,977,982,984,986,988,989,994,998,1003,1011,1016,1020,1023,1027,1036,1039,1043,1045,1052,1057,1064,1068,1073,1076,1080,1083,1086,1093,1095,1096,1098,1103,1105,1107,1109,1112,1117,1119,1123,1125,1130,1131,1134,1140,1141,1143,1144,1150,1153,1155,1158,1159,1160,1162,1164,1165,1168,1170,1174,1176,1180,1181,1183,1184,1189,1198,1200,1203,1205,1206,1210,1212,1218,1221,1223,1224,1226,1228,1231,1232,1233,1234,1237,1238,1239,1242,1246,1248,1255,1256,1258,1259,1260,1263,1274,1277,1287,1292,1298,1301,1302,1305,1307,1310,1311,1316,1318,1320,1323,1325,1328,1331,1333,1337,1341,1344,1349,1351,1355,1360,1361,1367,1374,1378,1380,1383,1386,1388,1389,1393,1427,1428,1440,1443,1448,1451,1454,1456,1459,1465,1466,1468,1486,1488,1491,1500,1503,1520,1527,1531,1554,1557,1569,1572,1591,1595,1614,1623,1643,1647,1651,1654,1657,1660,1672,1680,1683,1687,1703,1710,1715,1735,1740,1743,1747,1750,1763,1771,1780,1788,1800,1803,1817,1829,1843,1847,1853,1859,1860,1863,1864,1867,1911,1925,1988];r=new RegExp('('+g.join('&#124;')+')([0-9]+)年','g');s=s.replace(r,function($0,$1,$2){for(i=0;i&#60;g.length;i++){if($1==g[i]){yz=ys[i];}}return($1+$2+'年('+(parseInt($2)+parseInt(yz))+'年)')});o.innerHTML=s;})()]]></description>
		<wfw:commentRss>http://stabucky.com/wp/archives/3008/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>法令等の括弧部分を薄くするブックマークレット</title>
		<link>http://stabucky.com/wp/archives/2815</link>
		<comments>http://stabucky.com/wp/archives/2815#comments</comments>
		<pubDate>Sat, 14 May 2011 02:40:45 +0000</pubDate>
		<dc:creator>stabucky</dc:creator>
				<category><![CDATA[デジタル]]></category>
		<category><![CDATA[ブックマークレット]]></category>

		<guid isPermaLink="false">http://stabucky.com/wp/?p=2815</guid>
		<description><![CDATA[インターネットで法令を見るときには、e-Gov（イーガブ）の法令データ提供システムがよいと思います。総務省のサイトなので信頼できるでしょう。 法令データ提供システム 法律を読むのは面倒なのですが、とりわけ面倒なのは、括弧が多くて長いため、文の構造が分かりにくいところ。 繰り返しを避けたり、正確な表現をしたりするために、必要なのは分かりますが、とにかく読みにくい。 とりあえず、とばして読もうにも、括弧の対応がよく分からない。 そこでブックマークレットを作りました。]]></description>
		<wfw:commentRss>http://stabucky.com/wp/archives/2815/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ブックマークレットで外部ファイルを使う方法</title>
		<link>http://stabucky.com/wp/archives/1818</link>
		<comments>http://stabucky.com/wp/archives/1818#comments</comments>
		<pubDate>Thu, 26 Aug 2010 23:39:37 +0000</pubDate>
		<dc:creator>stabucky</dc:creator>
				<category><![CDATA[デジタル]]></category>
		<category><![CDATA[ブックマークレット]]></category>

		<guid isPermaLink="false">http://stabucky.com/wp/?p=1818</guid>
		<description><![CDATA[ブックマークレットの長さの制限は508文字だそうです。 複雑なものを作ると超えてしまうかもしれません。 このような場合はJavaScriptの本体を外部のファイルにする方法を使うとよいです。 javascript:&#40;function&#40;&#41;&#123;var%20url='http://xxxx/bm.js';var%20d=document;var%20e=d.createElement&#40;'script'&#41;;e.src=url;d.getElementsByTagName&#40;'head'&#41;&#91;0&#93;.appendChild&#40;e&#41;;&#125;&#41;&#40;&#41;; 改行を入れて見やすくしたのが次です。 javascript:&#40;function&#40;&#41;&#123; var url='http://xxxx/bm.js'; var d=document; var e=d.createElement&#40;'script'&#41;; e.src=url; d.getElementsByTagName&#40;'head'&#41;&#91;0&#93;.appendChild&#40;e&#41;; &#125;&#41;&#40;&#41;; まずJavaScriptのファイル(bm.js)を適当な所に置きます。 このファイルを参照するscriptタグを作り、headタグの中に置く、というようなことをやっています。 これで任意のページに対してJavaScriptが実行されることになります。 例えば「bm.js」として alert&#40;&#34;test&#34;&#41;; と書くとブックマークレットの中にはそのような命令はないのに実行すると「test」というアラートが表示されます。 「ブックマークレットを配布したのだが、修正したい」というようなときも、ブックマークレットそのものは変えず、参照する外部ファイルを修正すれば済む、というような使い方もできます。]]></description>
		<wfw:commentRss>http://stabucky.com/wp/archives/1818/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ブラウザ上の選択された文字列を取得する方法</title>
		<link>http://stabucky.com/wp/archives/1702</link>
		<comments>http://stabucky.com/wp/archives/1702#comments</comments>
		<pubDate>Thu, 29 Jul 2010 11:16:00 +0000</pubDate>
		<dc:creator>stabucky</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[ブックマークレット]]></category>

		<guid isPermaLink="false">http://stabucky.com/wp/?p=1702</guid>
		<description><![CDATA[JavaScriptを使って、ブラウザ上の選択された文字列を取得する方法を示します。 IEの場合は、documentに対して、「selection.createRange().text」を使うと取得できます。 Firefoxの場合は、documentまたはwindowに対して、「getSelection()」を使います。 次は選択された文字列をアラートで表示させる例です。 HTML &#60;input type=&#34;button&#34; onclick=&#34;alert_selection()&#34; value=&#34;表示&#34;&#62; &#60;p&#62;あいうえお&#60;/p&#62; &#60;p&#62;&#60;input type=&#34;text&#34; value=&#34;かきくけこ&#34;&#62;&#60;/p&#62; &#60;p&#62;&#60;textarea&#62;さしすせそ&#60;/textarea&#62;&#60;/p&#62; JavaScript function alert_selection&#40;&#41;&#123; &#160; &#160; x=document; &#160; &#160; y=window; &#160; &#160; if&#40;x.selection&#41;&#123; &#160; &#160; &#160; &#160; t=x.selection.createRange&#40;&#41;.text; &#160; &#160; &#125;else if&#40;y.getSelection&#41;&#123; &#160; &#160; &#160; &#160; t=y.getSelection&#40;&#41;; &#160; &#160; &#125;else if&#40;x.getSelection&#41;&#123; &#160; &#160; &#160; &#160; t=x.getSelection&#40;&#41;; &#160; &#160; &#125; &#160; &#160; alert&#40;t&#41;; [...]]]></description>
		<wfw:commentRss>http://stabucky.com/wp/archives/1702/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>「Twitterに投稿」用のリンクとブックマークレット</title>
		<link>http://stabucky.com/wp/archives/1368</link>
		<comments>http://stabucky.com/wp/archives/1368#comments</comments>
		<pubDate>Thu, 03 Jun 2010 14:08:39 +0000</pubDate>
		<dc:creator>stabucky</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[ブックマークレット]]></category>

		<guid isPermaLink="false">http://stabucky.com/wp/?p=1368</guid>
		<description><![CDATA[自分のウェブサイトのタイトルとURLをTwitterに投稿するための「リンク」は次のように書きます。 &#60;a href=&#34;javascript:(function(){window.open('http://twitter.com/home/?status=' + '〈' + document.title + '〉' + document.location.href)})()&#34;&#62;Twitterに投稿&#60;/a&#62; そして、この「リンク」を右クリックしてブックマークに登録するとブックマークレットになります。この場合は自分のウェブサイトでなくても使えます。 Twitterに投稿]]></description>
		<wfw:commentRss>http://stabucky.com/wp/archives/1368/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>自動入力のためのブックマークレットの作り方</title>
		<link>http://stabucky.com/wp/archives/1313</link>
		<comments>http://stabucky.com/wp/archives/1313#comments</comments>
		<pubDate>Fri, 28 May 2010 13:18:12 +0000</pubDate>
		<dc:creator>stabucky</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[ブックマークレット]]></category>

		<guid isPermaLink="false">http://stabucky.com/wp/?p=1313</guid>
		<description><![CDATA[ウェブサイトのテキストボックスに文字列をセットしたり、リストボックスの選択肢を選んだりすることがありますが、いつも同じページで同じ作業をするのは苦痛です。 ブックマークレットを使うと自動化することができます。 ここではブックマークレットの作り方を説明します。 テキストボックス(idがある場合) 次の通り、テキストボックスが2個あるとします。 &#60;input type=&#8221;text&#8221; id=&#8221;t0&#8243;&#62; &#60;input type=&#8221;text&#8221; id=&#8221;t1&#8243;&#62; 「id=&#8221;t1&#8243;」となっているテキストボックスに「あいうえお」とセットするには次のようにします。 document.getElementById&#40;&#34;t1&#34;&#41;.value=&#34;あいうえお&#34;; 「id=&#8221;t1&#8243;」となっているテキストボックスは、そのページには1個しかないので、「getElementById」を使ってピンポイントで特定できます。 ※もし重複があれば最初の1個です。 テキストボックス(nameがある場合) idがない場合があります。 実行(submit)ボタンを押すと、引数としてテキストボックスなどの値が使われます。それが何の値なのかは「name」で表わされるので、idがない場合でも、nameはあるはずです。 ところがnameについては「getElementById」に相当するものがありません。 そこでテキストボックスなどをしらみつぶしにチェックしてnameが一致するものを探すという方法になります。 次の通り、テキストボックスが2個あるとします。 &#60;input type=&#8221;text&#8221; name=&#8221;t0&#8243;&#62; &#60;input type=text name=&#8221;t1&#8243;&#62; 「name=&#8221;t1&#8243;」となっているテキストボックスに「かきくけこ」とセットするには次のようにします。 arrs=document.all; for&#40;i=0;i&#38;lt;arrs.length;i++&#41;&#123; &#160; &#160; if&#40;arrs&#91;i&#93;.name==&#34;t1&#34;&#41;&#123; &#160; &#160; &#160; &#160; arrs&#91;i&#93;.value=&#34;かきくけこ&#34;; &#160; &#160; &#125; &#125; 「arrs=document.all;」で、すべてのオブジェクトを配列で取得します。 順にチェックしてnameが「t1」であるオブジェクトを見付けます。 見付けたらvalueに「かきくけこ」を入力します。 リストボックス 次の通り、選択肢が3個のリストボックスがあるとします。 &#60;select&#62; &#60;option&#62;op0&#60;/option&#62; &#60;option&#62;op1&#60;/option&#62; &#60;option&#62;op2&#60;/option&#62; &#60;/select&#62; 「op1」を選択するには次のようにします。 for&#40;i=0;i&#38;lt;arrs.length;i++&#41;&#123; &#160; [...]]]></description>
		<wfw:commentRss>http://stabucky.com/wp/archives/1313/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>alertとpromptのどちらを使うか</title>
		<link>http://stabucky.com/wp/archives/1058</link>
		<comments>http://stabucky.com/wp/archives/1058#comments</comments>
		<pubDate>Fri, 05 Mar 2010 06:35:38 +0000</pubDate>
		<dc:creator>stabucky</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[ブックマークレット]]></category>

		<guid isPermaLink="false">http://stabucky.com/wp/?p=1058</guid>
		<description><![CDATA[ブックマークレットで、取得した何らかの結果を表示させるにはアラートまたはプロンプトを使う。 javascript:&#40;function&#40;&#41;&#123;alert&#40;'sample'&#41;;&#125;&#41;&#40;&#41; javascript:&#40;function&#40;&#41;&#123;a=window.prompt&#40;'title','sample'&#41;;&#125;&#41;&#40;&#41; promptを使った場合は、IEならば、文字列がテキストボックスに出力され、選択状態になるので、コピーが簡単である。]]></description>
		<wfw:commentRss>http://stabucky.com/wp/archives/1058/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

