Results 1 to 2 of 2

Thread: CTRL + F

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2000
    Location
    Chesterfield, UK
    Posts
    298

    Unhappy

    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.

  2. #2
    Fanatic Member RealisticGraphics's Avatar
    Join Date
    Jul 1999
    Location
    Arkansas
    Posts
    655
    Here are two examples

    This one opens the find dialog box
    Code:
    <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).

    Code:
    <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>
    www.RealisticGraphics.net

    Running VS.Net Enterprise & VB 6

    Other Languages: JavaScript, VBScript, VBA, HTML, CSS, ASP, SQL, XML

    MSN Messenger: kmsheff

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width