Ok I have this code here that searches another window for a particular word ok.
Look
Ok you see theCode:
<body>
<input type="button" value="Find" onClick="findit()">
</form>
<script language="JavaScript">
var pos = 0;
function findit() {
if (document.myform.mytext.value == '') {
alert('Nothing to search for');
return;
}
if (document.all) {
var found = false;
var text = opener.document.body.createTextRange();
for (var i=0; i<=pos && (found=text.findText(document.myform.mytext.value)) != false; i++) {
text.moveStart("character", 1);
text.moveEnd("textedit");
}
if (found) {
text.moveStart("character", -1);
text.findText(document.myform.mytext.value);
text.select();
text.scrollIntoView();
pos++;
}
else {
if (pos == '0')
alert('"' + document.myform.mytext.value +'" was not found on this page.');
else
alert('No further occurences of "' + document.myform.mytext.value +'" were found.');
pos=0;
}
}
else if (document.layers) {
opener.find(document.myform.mytext.value,false);
}
}
//--></script>
</body>
Well the value = Find but when I click it the first time i would like it to change to Find Next!!!!Code:
<input type="button" value="Find" onClick="findit()">
Also if they change the word they are looking for I want to change the button value to find again!
Is there any way of disabling the maximize button on my form??
Please Help
Regards
MattJH
