Click to See Complete Forum and Search --> : CTRL + F
MattJH
Dec 8th, 2000, 02:49 AM
Is there a way in Internet Explorer (other than going to the edit menu then clicking find, or just pressing ctrl + f)
to get the find dialog box up.
Basically I'm looking for something that will find string values within a page.
Please help.
Cheers Matt.
RealisticGraphics
Dec 8th, 2000, 07:16 PM
Here are two examples
This one opens the find dialog box
<script language="JavaScript1.2">
function PageFind()
{
window.find();
}
On the other hand this one will search the page by passing vars to the function (only works in Netscape, possibly IE5).
<script language="JavaScript1.2">
function PageFind(tString){
window.find(tString)
}
</script>
Dog<br>
Bear<br>
Cat<br>
Bird<br>
Fish<br><br>
<form>
<input type="text" name="myString">
<input type="button" onClick="PageFind(this.form.myString.value)" value="Find">
</form>
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.