Now I got the concept.
However, I dont want my text in textarea to be hardcoded. User can enter any sentence and they should be able to change their words in textarea using search and replace.
Do I do that like this?
var str = replaceform.txt.value; //replaceform is the name of the form; txt is the textarea's id
document.write(str.replace(/how can I get search's text area value?/, "how can I get ")replace's text area value?);
what goes inside str.replace()??????? How can I get the user entered text area's value from search and replace textarea??