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

  • SEARCH
  • Home
  • 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 8562643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:46:25+00:00 2026-06-11T16:46:25+00:00

According to the official documentation, this event is: Triggered when the field is blurred,

  • 0

According to the official documentation, this event is:

Triggered when the field is blurred, if the value has changed;

Now, how does it know if the value has changed? Is it stored somewhere? And the reason I ask: can I replicate that behaviour?

Thanks

  • 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-06-11T16:46:27+00:00Added an answer on June 11, 2026 at 4:46 pm

    This is resolved by the browser. You can also trigger for values changed on text inputs by attaching a handler to the onchange event:

    <input onchange="alert('value changed!');" />
    

    And also in Javascript:

    document.getElementById("my_text_input").onchange = function(){
        alert("value changed!");
    }
    

    Of course you can replicate this behaviour. You can try it yourself here.

    [Edit]
    You have the onblur event, which fires every time the user leaves the control.
    You could keep track of the input value, or set a flag to be accesible for both change and blur events:

    (function(){
        var changed = false;
    
        document.getElementById("my_text_input").onchange = function(){
            changed = true;
        }
        document.getElementById("my_text_input").onblur = function(){
            if (!changed) {
                //Your logic here
            }
            changed = false; //set it back to false for next loss of focus
        }
    })();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

According to the official documentation , the KeyDown event on a Windows Forms control
According to PHP's official documentation the imagepng() function has the following signature: bool imagepng
According to official documentation function MonkeyDevice.instrument(className, args) is perfectly suitable for this task. As
According to the official release statement version 1.4 has been re-written to be compressed
According to the official documentation , os.path is a module. Thus, what is the
According to the official Python documentation for the weakref module the primary use for
According to the official docs, PyImport_AppendInittab will return -1 on failure. It does not,
Here's the information according to the official documentation : There are four different pairs
According to (somewhat official) this guide , I can make a radio button's label
According to this article Google Chrome 15 has a fullscreen JavaScript API. I have

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.