Shamaila said:
I) its not the same text or phrase, i wish it was but its not.
2) I want to be able to pull that one word or phrase and set it to be
equal to a variable, and out put it in another location.
Please help
I am still having trouble understand exactly what you want to do.
Could you provide a very detailed example? You started with:
"Hi I need help with a topic I have an html page and in it i have a
textarea which can have a multiple of info, is there any possible way
that i can out put a specific area of the textarea using javascript or
no its not possible."
a) "I have an html page ..."; is it your page (or a URL)?
b) Does the page contain a <form> with a <textarea>?
c) What would determine "a specific area of the textarea"?
Is the following even close to what you want?
<html>
<head>
<title>ta.htm</title>
<script type="text/javascript">
function ta() {
var form = document.form1;
var area = form.area1.value;
if (area == "") return;
var word = "hello";
var what = area.toLowerCase();
if (what.indexOf(word) < 0) return;
alert("The word '" + word + "' is in the textarea.");
}
</script>
</head>
<body>
<form name="form1">
<textarea name="area1" cols="40" rows="8">Hello World!</textarea>
<input type="button" value="Click" onclick="ta()">
</form>
</body>
</html>