Skip to content

Tag: constructor

XMLHttpRequest.onload constructor in Javascript?

When making a new XMLHttpRequest, like so There is a method (property ?) called onload. My question is, why we can assign a function to it? like this If onload is a property in XMLHttpRequest, the value of it will change when we assign a new value to it, like a function, right? What is the XMLHttpRequest.onlo…