oncopy/oncut/onpaste Event
In slight contrast to many languages which are referred to as object-oriented (a concept we'll briefly explore later in this chapter), JavaScript is actually an object-based language. In JavaScript, practically everything is an object, except for language constructs, keywords, and operators. Objects in JavaScript play many different roles, from representing data types, to manipulation of (X)HTML documents via the Document Object Model (DOM), to interfacing with the browser, and more. Object-based programming in JavaScript is what unlocks the true power of the language. While previous chapters presented examples that implicitly demonstrated the use of native (built-in) objects, this chapter will explore JavaScript objects directly and in-depth.