Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Mar 2015
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    JavaScript to search the text feild

    Hi Guys,

    I'm new to JS.


    I'm trying to implement this JS in grease monkey and this is what I'm trying to do :

    When the user types a particular word in a text field on a web page, lets say "help" then it should bring up a pop up message saying "What do u want". Can someone help me with sample codes?

    TIA

  • #2
    Master Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    5,256
    Thanks
    26
    Thanked 723 Times in 721 Posts
    The first thing you must do is to identify the text field you want to monitor. You will need an ID for that field, if it hasn't got one it becomes a lot harder.
    See if you can turn the back ground color of the 'text field' red for starters.

    What are you using to learn JS?
    What is the page you want G-M to work on?

    In the mean time look at this page and see if it helps: Greasemonkey Tutorial for Beginners
    Evolution - The non-random survival of random variants.

    "If you leave hydrogen alone, for long enough, it begins to think about itself."


  •  

    Tags for this Thread

    Posting Permissions

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