Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6379601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:09:32+00:00 2026-05-25T02:09:32+00:00

I am writing a script for Mozilla to done following requirement.When user click ctrl+f

  • 0

I am writing a script for Mozilla to done following requirement.When user click ctrl+f and search some text in a web page through,
If it is found that should be added with yellow background. I am strucked in start to write this script. Please someone help me with the idea. I am writing it through “greasemonkey”.
If a user search through Mozilla’s native findbar. If it is found that should be highlighted with some color. Even if another search happens old highlight should not be removed.
Please someone help me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T02:09:33+00:00Added an answer on May 25, 2026 at 2:09 am

    This will work…

    ctrlPressed = false;
    
    $(document).keydown(function(e){
    
       if(e.keyCode == 17){                           //17 is "ctrl"
             ctrlPressed = true;
       }
    
       if(ctrlPressed && e.keyCode == 70){            //70 is "f"
           alert("Page is being searched");
       }
    
    });
    
    
    $(document).keyup(function(e){
    
       if(e.keyCode == 17){ 
             ctrlPressed = false;
       }
    
    });
    

    …but I suspect there may be a more straightforward way.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a script to read a web page, and build a database
I am writing following script to read list of servers from the text file
I'm writing script in remote.ini The script looks like on 1:start:{ server some.irc.server server
I'm writing a script to remove some build artifacts older than 1 week. The
I'm writing a script that has to move some file around, but unfortunately it
So I'm writing a script in python that dumps a renderlog to a text
I am writing a script to make chunks of a text and send it
I'm writing a script that will loop through a range of numbers, build a
I'm writing a script to transfer some files over sftp. I wanted do the
I'm writing a script in Python that will allow the user to input a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.