We're looking for a person or people to help audit MDN to find places we could speed up. Is this you or someone you know? Check out the RFP: https://mzl.la/2IHcMiE


An onchange attribute is an event listener to the object for the Event change. A change event is fired in different ways for different XUL Input Elements as listed below:

Type: script code
TextBox When Enter key is pressed
Radio/Check Box When the state is changed
Select List When the selected item is changed

What is accessible

The script context at this point can only access the following things:

  • Global Values/Functions i.e. window, document, or any of the functions/objects/variables bound to the window object
  • Event object


<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>

    title="Find Files"
  <script type="text/javascript">
  function myFunction(e){
      Do something cool here or just say the below
  <textbox id="find-text" onchange="return myFunction(event);"/>

Document Tags and Contributors

 Contributors to this page: SphinxKnight, Sheppy, kscarfone, dron, jswisher, fscholz, Marsf, Mgjbot, Ptak82, Dria
 Last updated by: SphinxKnight,