Aetae,
не знал даже об этом
https://developer.mozilla.org/en-US/...PI/Window/find
<!DOCTYPE html>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<style type="text/css">
</style>
<script>
findString = function findText(text) {
var a = window.find(text);
alert("String \x22" + text + "\x22 found? " + a);
}
</script>
</head>
<body>
<p>Apples, Bananas, and Oranges.</p>
<button type="button" onClick='findString("Apples")'>Search for Apples</button>
<button type="button" onClick='findString("Banana")'>Search for Banana</button>
<button type="button" onClick='findString("Orange")'>Search for Orange</button>1234
</body>
</html>