Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

171
Views
onChange event listener being called everytime window.onload function instantiated

I am trying to validate null input for dropdown selection, but the onchange event is triggered without any change of selection on dropdown list, when the window.onLoad() is instantiated.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

It would be better if you can provide your snipped code for your problem. You can try to add the

target.addEventListener(type, listener);
target.addEventListener(type, listener, options);
target.addEventListener(type, listener, useCapture);

On the other hand, you might want to try:

event.preventDefault();

Also, you can learn more here: EventTarget.addEventListener() or Event.preventDefault()

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!