TextboxReplace.js: Difference between revisions
(New page: function wpTextboxReplace() { var s = prompt("Text to replace:"); if(s){ var r = prompt("Replace /"+s+"/ with:"); if(!r && r != '') return; var txt = docume...) |
(No difference)
|
Latest revision as of 15:42, 16 March 2008
function wpTextboxReplace() { var s = prompt("Text to replace:"); if(s){ var r = prompt("Replace /"+s+"/ with:"); if(!r && r != '') return; var txt = document.editform.wpTextbox1; txt.value = txt.value.replace(new RegExp(s, "mg"), r); } }