developer's diary

最近はc#のエントリが多いです

textareaの内容を抽出して別窓に書き出すブックマークレット

テキストエリアの内容を全部抜き出したいときに利用。

用途としてはあんまりないですが。

ソース

javascript:v="";s=document.getElementsByTagName("textarea");for(i=0;i<s.length;i++){v+=s[i].value+"<br />";}w=window.open("","","width=280,height=480");w.document.open();w.document.write(v);

example

textarea抽出ブックマークレット

test1: test2: