blue_angel
May 9th 2009, 3:19 pm
I have a page and I want to search for some words.
and display relevant messages
I used the following for the title
Example1
var sentence=document.title;
if (sentence.indexOf("Hello")!=-1)
document.writeln ("Hello world");
and I am looking for the body
I tried to use
<script type="text/javascript">
var str=document.body;
document.write(str.search(/w3schools/i));
</script>
even and paid help please :confused:
and display relevant messages
I used the following for the title
Example1
var sentence=document.title;
if (sentence.indexOf("Hello")!=-1)
document.writeln ("Hello world");
and I am looking for the body
I tried to use
<script type="text/javascript">
var str=document.body;
document.write(str.search(/w3schools/i));
</script>
even and paid help please :confused: