100% found this document useful (1 vote)
240 views51 pages

JavaScript The Definitive Guide 5th Edition David Flanagan PDF Download

JavaScript: The Definitive Guide, 5th Edition by David Flanagan is a comprehensive resource for JavaScript programming, covering core language features, client-side scripting, and advanced topics like AJAX and XML processing. The book serves as both a guide for beginners and a reference for experienced programmers, with detailed explanations and numerous examples. Published by O'Reilly in August 2006, it spans 1018 pages and is widely regarded as an essential tool for JavaScript developers.

Uploaded by

biafwgsrm8338
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
240 views51 pages

JavaScript The Definitive Guide 5th Edition David Flanagan PDF Download

JavaScript: The Definitive Guide, 5th Edition by David Flanagan is a comprehensive resource for JavaScript programming, covering core language features, client-side scripting, and advanced topics like AJAX and XML processing. The book serves as both a guide for beginners and a reference for experienced programmers, with detailed explanations and numerous examples. Published by O'Reilly in August 2006, it spans 1018 pages and is widely regarded as an essential tool for JavaScript developers.

Uploaded by

biafwgsrm8338
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 51

JavaScript The Definitive Guide 5th Edition David

Flanagan - PDF Download (2025)

https://ebookultra.com/download/javascript-the-definitive-
guide-5th-edition-david-flanagan/

Visit ebookultra.com today to download the complete set of


ebooks or textbooks
Here are some recommended products for you. Click the link to
download, or explore more at ebookultra.com

JavaScript The Definitive Guide 6th Edition David Flanagan

https://ebookultra.com/download/javascript-the-definitive-guide-6th-
edition-david-flanagan/

HTTP The Definitive Guide 1st Edition David Gourley

https://ebookultra.com/download/http-the-definitive-guide-1st-edition-
david-gourley/

Animal The Definitive Visual Guide 3rd Edition David


Burnie

https://ebookultra.com/download/animal-the-definitive-visual-
guide-3rd-edition-david-burnie/

AppleScript The Definitive Guide 2nd Edition The


Definitive Guide

https://ebookultra.com/download/applescript-the-definitive-guide-2nd-
edition-the-definitive-guide/
DK Smithsonian Animal The Definitive Visual Guide Third
Edition David Burnie

https://ebookultra.com/download/dk-smithsonian-animal-the-definitive-
visual-guide-third-edition-david-burnie/

Asterisk The Definitive Guide Open Source Telephony for


the Enterprise 5th Edition Jim Van Meggelen

https://ebookultra.com/download/asterisk-the-definitive-guide-open-
source-telephony-for-the-enterprise-5th-edition-jim-van-meggelen/

Beginning JavaScript 5th Edition Jeremy Mcpeak

https://ebookultra.com/download/beginning-javascript-5th-edition-
jeremy-mcpeak/

JavaScript Bible 5th ed Edition Danny Goodman

https://ebookultra.com/download/javascript-bible-5th-ed-edition-danny-
goodman/

JavaScript The Missing Manual 1st Edition David Sawyer


Mcfarland

https://ebookultra.com/download/javascript-the-missing-manual-1st-
edition-david-sawyer-mcfarland/
JavaScript The Definitive Guide 5th Edition David
Flanagan Digital Instant Download
Author(s): David Flanagan
ISBN(s): 9780596101992, 0596101996
Edition: 5
File Details: PDF, 5.80 MB
Year: 2006
Language: english
JavaScript: The Definitive Guide, 5th Edition
By David Flanagan
...............................................
Publisher: O'Reilly
Pub Date: August 2006
Print ISBN-10: 0-596-10199-6
Print ISBN-13: 978-0-59-610199-2
Pages: 1018

Table of Contents | Index

This Fifth Edition is completely revised and expanded to cover JavaScript as it is used in today's Web 2.0
applications. This book is both an example-driven programmer's guide and a keep-on-your-desk
reference, with new chapters that explain everything you need to know to get the most out of
JavaScript, including:

Scripted HTTP and Ajax

XML processing

Client-side graphics using the <canvas> tag

Namespaces in JavaScript--essential when writing complex programs

Classes, closures, persistence, Flash, and JavaScript embedded in Java applications

Part I explains the core JavaScript language in detail. If you are new to JavaScript, it will teach you the
language. If you are already a JavaScript programmer, Part I will sharpen your skills and deepen your
understanding of the language.

Part II explains the scripting environment provided by web browsers, with a focus on DOM scripting with
unobtrusive JavaScript. The broad and deep coverage of client-side JavaScript is illustrated with many
sophisticated examples that demonstrate how to:
Generate a table of contents for an HTML document

Display DHTML animations

Automate form validation

Draw dynamic pie charts

Make HTML elements draggable

Define keyboard shortcuts for web applications

Create Ajax-enabled tool tips

Use XPath and XSLT on XML documents loaded with Ajax

And much more

Part III is a complete reference for core JavaScript. It documents every class, object, constructor,
method, function, property, and constant defined by JavaScript 1.5 and ECMAScript version 3.

Part IV is a reference for client-side JavaScript, covering legacy web browser APIs, the standard Level 2
DOM API, and emerging standards such as the XMLHttpRequest object and the <canvas> tag.

More than 300,000 JavaScript programmers around the world have made
this their indispensable reference book for building JavaScript applications.

"A must-have reference for expert JavaScript programmers...well-organized and detailed."


-- Brendan Eich, creator of JavaScript
JavaScript: The Definitive Guide, 5th Edition
By David Flanagan
...............................................
Publisher: O'Reilly
Pub Date: August 2006
Print ISBN-10: 0-596-10199-6
Print ISBN-13: 978-0-59-610199-2
Pages: 1018

Table of Contents | Index

Copyright
Dedication
Preface
Chapter 1. Introduction to JavaScript
Section 1.1. What Is JavaScript?
Section 1.2. Versions of JavaScript
Section 1.3. Client-Side JavaScript
Section 1.4. JavaScript in Other Contexts
Section 1.5. Exploring JavaScript
Part I: Core JavaScript
Chapter 2. Lexical Structure
Section 2.1. Character Set
Section 2.2. Case Sensitivity
Section 2.3. Whitespace and Line Breaks
Section 2.4. Optional Semicolons
Section 2.5. Comments
Section 2.6. Literals
Section 2.7. Identifiers
Section 2.8. Reserved Words
Chapter 3. Datatypes and Values
Section 3.1. Numbers
Section 3.2. Strings
Section 3.3. Boolean Values
Section 3.4. Functions
Section 3.5. Objects
Section 3.6. Arrays
Section 3.7. null
Section 3.8. undefined
Section 3.9. The Date Object
Section 3.10. Regular Expressions
Section 3.11. Error Objects
Section 3.12. Type Conversion Summary
Section 3.13. Primitive Datatype Wrapper Objects
Section 3.14. Object-to-Primitive Conversion
Section 3.15. By Value Versus by Reference
Chapter 4. Variables
Section 4.1. Variable Typing
Section 4.2. Variable Declaration
Section 4.3. Variable Scope
Section 4.4. Primitive Types and Reference Types
Section 4.5. Garbage Collection
Section 4.6. Variables as Properties
Section 4.7. Variable Scope Revisited
Chapter 5. Expressions and Operators
Section 5.1. Expressions
Section 5.2. Operator Overview
Section 5.3. Arithmetic Operators
Section 5.4. Equality Operators
Section 5.5. Relational Operators
Section 5.6. String Operators
Section 5.7. Logical Operators
Section 5.8. Bitwise Operators
Section 5.9. Assignment Operators
Section 5.10. Miscellaneous Operators
Chapter 6. Statements
Section 6.1. Expression Statements
Section 6.2. Compound Statements
Section 6.3. if
Section 6.4. else if
Section 6.5. switch
Section 6.6. while
Section 6.7. do/while
Section 6.8. for
Section 6.9. for/in
Section 6.10. Labels
Section 6.11. break
Section 6.12. continue
Section 6.13. var
Section 6.14. function
Section 6.15. return
Section 6.16. throw
Section 6.17. try/catch/finally
Section 6.18. with
Section 6.19. The Empty Statement
Section 6.20. Summary of JavaScript Statements
Chapter 7. Objects and Arrays
Section 7.1. Creating Objects
Section 7.2. Object Properties
Section 7.3. Objects as Associative Arrays
Section 7.4. Universal Object Properties and Methods
Section 7.5. Arrays
Section 7.6. Reading and Writing Array Elements
Section 7.7. Array Methods
Section 7.8. Array-Like Objects
Chapter 8. Functions
Section 8.1. Defining and Invoking Functions
Section 8.2. Function Arguments
Section 8.3. Functions as Data
Section 8.4. Functions as Methods
Section 8.5. Constructor Functions
Section 8.6. Function Properties and Methods
Section 8.7. Utility Function Examples
Section 8.8. Function Scope and Closures
Section 8.9. The Function() Constructor
Chapter 9. Classes, Constructors, and Prototypes
Section 9.1. Constructors
Section 9.2. Prototypes and Inheritance
Section 9.3. Simulating Classes in JavaScript
Section 9.4. Common Object Methods
Section 9.5. Superclasses and Subclasses
Section 9.6. Extending Without Inheriting
Section 9.7. Determining Object Type
Section 9.8. Example: A defineClass( ) Utility Method
Chapter 10. Modules and Namespaces
Section 10.1. Creating Modules and Namespaces
Section 10.2. Importing Symbols from Namespaces
Section 10.3. Module Utilities
Chapter 11. Pattern Matching with Regular Expressions
Section 11.1. Defining Regular Expressions
Section 11.2. String Methods for Pattern Matching
Section 11.3. The RegExp Object
Chapter 12. Scripting Java
Section 12.1. Embedding JavaScript
Section 12.2. Scripting Java
Part II: Client-Side JavaScript
Chapter 13. JavaScript in Web Browsers
Section 13.1. The Web Browser Environment
Section 13.2. Embedding Scripts in HTML
Section 13.3. Event Handlers in HTML
Section 13.4. JavaScript in URLs
Section 13.5. Execution of JavaScript Programs
Section 13.6. Client-Side Compatibility
Section 13.7. Accessibility
Section 13.8. JavaScript Security
Section 13.9. Other Web-Related JavaScript Embeddings
Chapter 14. Scripting Browser Windows
Section 14.1. Timers
Section 14.2. Browser Location and History
Section 14.3. Obtaining Window, Screen, and Browser Information
Section 14.4. Opening and Manipulating Windows
Section 14.5. Simple Dialog Boxes
Section 14.6. Scripting the Status Line
Section 14.7. Error Handling
Section 14.8. Multiple Windows and Frames
Section 14.9. Example: A Navigation Bar in a Frame
Chapter 15. Scripting Documents
Section 15.1. Dynamic Document Content
Section 15.2. Document Properties
Section 15.3. Legacy DOM: Document Object Collections
Section 15.4. Overview of the W3C DOM
Section 15.5. Traversing a Document
Section 15.6. Finding Elements in a Document
Section 15.7. Modifying a Document
Section 15.8. Adding Content to a Document
Section 15.9. Example: A Dynamically Created Table of Contents
Section 15.10. Querying Selected Text
Section 15.11. The IE 4 DOM
Chapter 16. Cascading Style Sheets and Dynamic HTML
Section 16.1. Overview of CSS
Section 16.2. CSS for DHTML
Section 16.3. Scripting Inline Styles
Section 16.4. Scripting Computed Styles
Section 16.5. Scripting CSS Classes
Section 16.6. Scripting Stylesheets
Chapter 17. Events and Event Handling
Section 17.1. Basic Event Handling
Section 17.2. Advanced Event Handling with DOM Level 2
Section 17.3. The Internet Explorer Event Model
Section 17.4. Mouse Events
Section 17.5. Key Events
Section 17.6. The onload Event
Section 17.7. Synthetic Events
Chapter 18. Forms and Form Elements
Section 18.1. The Form Object
Section 18.2. Defining Form Elements
Section 18.3. Scripting Form Elements
Section 18.4. Form Verification Example
Chapter 19. Cookies and Client-Side Persistence
Section 19.1. An Overview of Cookies
Section 19.2. Storing Cookies
Section 19.3. Reading Cookies
Section 19.4. Cookie Example
Section 19.5. Cookie Alternatives
Section 19.6. Persistent Data and Security
Chapter 20. Scripting HTTP
Section 20.1. Using XMLHttpRequest
Section 20.2. XMLHttpRequest Examples and Utilities
Section 20.3. Ajax and Dynamic Scripting
Section 20.4. Scripting HTTP with <script> Tags
Chapter 21. JavaScript and XML
Section 21.1. Obtaining XML Documents
Section 21.2. Manipulating XML with the DOM API
Section 21.3. Transforming XML with XSLT
Section 21.4. Querying XML with XPath
Section 21.5. Serializing XML
Section 21.6. Expanding HTML Templates with XML Data
Section 21.7. XML and Web Services
Section 21.8. E4X: ECMAScript for XML
Chapter 22. Scripted Client-Side Graphics
Section 22.1. Scripting Images
Section 22.2. Graphics with CSS
Section 22.3. SVG: Scalable Vector Graphics
Section 22.4. VML: Vector Markup Language
Section 22.5. Graphics in a <canvas>
Section 22.6. Graphics with Flash
Section 22.7. Graphics with Java
Chapter 23. Scripting Java Applets and Flash Movies
Section 23.1. Scripting Applets
Section 23.2. Scripting the Java Plug-in
Section 23.3. Scripting with Java
Section 23.4. Scripting Flash
Section 23.5. Scripting Flash 8
Part III: Core JavaScript Reference
Chapter 24. Core JavaScript Reference
Section 24.1. Sample Entry: how to read these reference pages
Section 24.2. arguments[ ]: an array of function arguments
Section 24.3. Arguments: arguments and other properties of a function
Section 24.4. Arguments.callee: the function that is currently running
Section 24.5. Arguments.length: the number of arguments passed to a function
Section 24.6. Array: built-in support for arrays
Section 24.7. Array.concat( ): concatenate arrays
Section 24.8. Array.join( ): concatenate array elements to form a string
Section 24.9. Array.length: the size of an array
Section 24.10. Array.pop( ): remove and return the last element of an array
Section 24.11. Array.push( ): append elements to an array
Section 24.12. Array.reverse( ): reverse the elements of an array
Section 24.13. Array.shift( ): shift array elements down
Section 24.14. Array.slice( ): return a portion of an array
Section 24.15. Array.sort( ): sort the elements of an array
Section 24.16. Array.splice( ): insert, remove, or replace array elements
Section 24.17. Array.toLocaleString( ): convert an array to a localized string
Section 24.18. Array.toString( ): convert an array to a string
Section 24.19. Array.unshift( ): insert elements at the beginning of an array
Section 24.20. Boolean: support for boolean values
Section 24.21. Boolean.toString( ): convert a boolean value to a string
Section 24.22. Boolean.valueOf( ): the boolean value of a Boolean object
Section 24.23. Date: manipulate dates and times
Section 24.24. Date.getDate( ): return the day-of-the-month field of a Date
Section 24.25. Date.getDay( ): return the day-of-the-week field of a Date
Section 24.26. Date.getFullYear( ): return the year field of a Date
Section 24.27. Date.getHours( ): return the hours field of a Date
Section 24.28. Date.getMilliseconds( ): return the milliseconds field of a Date
Section 24.29. Date.getMinutes( ): return the minutes field of a Date
Section 24.30. Date.getMonth( ): return the month field of a Date
Section 24.31. Date.getSeconds( ): return the seconds field of a Date
Section 24.32. Date.getTime( ): return a Date in milliseconds
Section 24.33. Date.getTimezoneOffset( ): determine the offset from GMT
Section 24.34. Date.getUTCDate( ): return the day-of-the-month field of a Date (universal time)
Section 24.35. Date.getUTCDay( ): return the day-of-the-week field of a Date (universal time)
Section 24.36. Date.getUTCFullYear( ): return the year field of a Date (universal time)
Section 24.37. Date.getUTCHours( ): return the hours field of a Date (universal time)
Section 24.38. Date.getUTCMilliseconds( ): return the milliseconds field of a Date (universal time)
Section 24.39. Date.getUTCMinutes( ): return the minutes field of a Date (universal time)
Section 24.40. Date.getUTCMonth( ): return the month-of-the-year field of a Date (universal time)
Section 24.41. Date.getUTCSeconds( ): return the seconds field of a Date (universal time)
Section 24.42. Date.getYear( ): return the year field of a Date
Section 24.43. Date.parse( ): parse a date/time string
Section 24.44. Date.setDate( ): set the day-of-the-month field of a Date
Section 24.45. Date.setFullYear( ): set the year and, optionally, the month and date fields of a Date
Section 24.46. Date.setHours( ): set the hours, minutes, seconds, and milliseconds fields of a Date
Section 24.47. Date.setMilliseconds( ): set the milliseconds field of a Date
Section 24.48. Date.setMinutes( ): set the minutes, seconds, and milliseconds fields of a Date
Section 24.49. Date.setMonth( ): set the month and day fields of a Date
Section 24.50. Date.setSeconds( ): set the seconds and milliseconds fields of a Date
Section 24.51. Date.setTime( ): set a Date in milliseconds
Section 24.52. Date.setUTCDate( ): set the day-of-the-month field of a Date (universal time)
Section 24.53. Date.setUTCFullYear( ): set the year, month, and day fields of a Date (universal time)
Section 24.54. Date.setUTCHours( ): set the hours, minutes, seconds, and milliseconds fields of a Date (universal time)
Section 24.55. Date.setUTCMilliseconds( ): set the milliseconds field of a Date (universal time)
Section 24.56. Date.setUTCMinutes( ): set the minutes, seconds, and milliseconds fields of a Date (universal time)
Section 24.57. Date.setUTCMonth( ): set the month and day fields of a Date (universal time)
Section 24.58. Date.setUTCSeconds( ): set the seconds and milliseconds fields of a Date (universal time)
Section 24.59. Date.setYear( ): set the year field of a Date
Section 24.60. Date.toDateString( ): return the date portion of a Date as a string
Section 24.61. Date.toGMTString( ): convert a Date to a universal time string
Section 24.62. Date.toLocaleDateString( ): return the date portion of a Date as a locally formatted string
Section 24.63. Date.toLocaleString( ): convert a Date to a locally formatted string
Section 24.64. Date.toLocaleTimeString( ): return the time portion of a Date as a locally formatted string
Section 24.65. Date.toString( ): convert a Date to a string
Section 24.66. Date.toTimeString( ): return the time portion of a Date as a string
Section 24.67. Date.toUTCString( ): convert a Date to a string (universal time)
Section 24.68. Date.UTC( ): convert a Date specification to milliseconds
Section 24.69. Date.valueOf( ): convert a Date to millisecond representation
Section 24.70. decodeURI( ): unescape characters in a URI
Section 24.71. decodeURIComponent( ): unescape characters in a URI component
Section 24.72. encodeURI( ): escape characters in a URI
Section 24.73. encodeURIComponent( ): escape characters in a URI component
Section 24.74. Error: a generic exception
Section 24.75. Error.message: a human-readable error message
Section 24.76. Error.name: the type of an error
Section 24.77. Error.toString( ): convert an Error object to a string
Section 24.78. escape( ): encode a string
Section 24.79. eval( ): execute JavaScript code from a string
Section 24.80. EvalError: thrown when eval( ) is used improperly
Section 24.81. Function: a JavaScript function
Section 24.82. Function.apply( ): invoke a function as a method of an object
Section 24.83. Function.arguments[]: arguments passed to a function
Section 24.84. Function.call( ): invoke a function as a method of an object
Section 24.85. Function.caller: the function that called this one
Section 24.86. Function.length: the number of declared arguments
Section 24.87. Function.prototype: the prototype for a class of objects
Section 24.88. Function.toString( ): convert a function to a string
Section 24.89. getClass( ): return the JavaClass of a JavaObject
Section 24.90. Global: the global object
Section 24.91. Infinity: a numeric property that represents infinity
Section 24.92. isFinite( ): determine whether a number is finite
Section 24.93. isNaN( ): check for not-a-number
Section 24.94. java: the JavaPackage for the java.* package hierarchy
Section 24.95. JavaArray: JavaScript representation of a Java array
Section 24.96. JavaClass: JavaScript representation of a Java class
Section 24.97. JavaObject: JavaScript representation of a Java object
Section 24.98. JavaPackage: JavaScript representation of a Java package
Section 24.99. JSObject: see JSObject in Part IV
Section 24.100. Math: mathematical functions and constants
Section 24.101. Math.abs( ): compute an absolute value
Section 24.102. Math.acos( ): compute an arccosine
Section 24.103. Math.asin( ): compute an arcsine
Section 24.104. Math.atan( ): compute an arctangent
Section 24.105. Math.atan2( ): compute the angle from the X axis to a point
Section 24.106. Math.ceil( ): round a number up
Section 24.107. Math.cos( ): compute a cosine
Section 24.108. Math.E: the mathematical constant e
Section 24.109. Math.exp( ): compute ex
Section 24.110. Math.floor( ): round a number down
Section 24.111. Math.LN10: the mathematical constant loge2
Section 24.112. Math.LN2: the mathematical constant loge10
Section 24.113. Math.log( ): compute a natural logarithm
Section 24.114. Math.LOG10E: the mathematical constant log2e
Section 24.115. Math.LOG2E: the mathematical constant log10e
Section 24.116. Math.max( ): return the largest argument
Section 24.117. Math.min( ): return the smallest argument
Section 24.118. Math.PI: the mathematical constant p
Section 24.119. Math.pow( ): compute xy
Section 24.120. Math.random( ): return a pseudorandom number
Section 24.121. Math.round( ): round to the nearest integer
Section 24.122. Math.sin( ): compute a sine
Section 24.123. Math.sqrt( ): compute a square root
Section 24.124. Math.SQRT1_2: the mathematical constant 1/
Section 24.125. Math.SQRT2: the mathematical constant
Section 24.126. Math.tan( ): compute a tangent
Section 24.127. NaN: the not-a-number property
Section 24.128. Number: support for numbers
Section 24.129. Number.MAX_VALUE: the maximum numeric value
Section 24.130. Number.MIN_VALUE: the minimum numeric value
Section 24.131. Number.NaN: the special not-a-number value
Section 24.132. Number.NEGATIVE_INFINITY: negative infinity
Section 24.133. Number.POSITIVE_INFINITY: infinity
Section 24.134. Number.toExponential( ): format a number using exponential notation
Section 24.135. Number.toFixed( ): format a number using fixed-point notation
Section 24.136. Number.toLocaleString( ): convert a number to a locally formatted string
Section 24.137. Number.toPrecision( ): format the significant digits of a number
Section 24.138. Number.toString( ): convert a number to a string
Section 24.139. Number.valueOf( ): return the primitive number value
Section 24.140. Object: a superclass that contains features of all JavaScript objects
Section 24.141. Object.constructor: an object's constructor function
Section 24.142. Object.hasOwnProperty( ): check whether a property is inherited
Section 24.143. Object.isPrototypeOf( ): is one object the prototype of another?
Section 24.144. Object.propertyIsEnumerable( ): will property be seen by a for/in loop?
Section 24.145. Object.toLocaleString( ): return an object's localized string representation
Section 24.146. Object.toString( ): define an object's string representation
Section 24.147. Object.valueOf( ): the primitive value of the specified object
Section 24.148. Packages: the root JavaPackage
Section 24.149. parseFloat( ): convert a string to a number
Section 24.150. parseInt( ): convert a string to an integer
Section 24.151. RangeError: thrown when a number is out of its legal range
Section 24.152. ReferenceError: thrown when reading a variable that does not exist
Section 24.153. RegExp: regular expressions for pattern matching
Section 24.154. RegExp.exec( ): general-purpose pattern matching
Section 24.155. RegExp.global: whether a regular expression matches globally
Section 24.156. RegExp.ignoreCase: whether a regular expression is case-insensitive
Section 24.157. RegExp.lastIndex: the starting position of the next match
Section 24.158. RegExp.source: the text of the regular expression
Section 24.159. RegExp.test( ): test whether a string matches a pattern
Section 24.160. RegExp.toString( ): convert a regular expression to a string
Section 24.161. String: support for strings
Section 24.162. String.charAt( ): get the nth character from a string
Section 24.163. String.charCodeAt( ): get the nth character code from a string
Section 24.164. String.concat( ): concatenate strings
Section 24.165. String.fromCharCode( ): create a string from character encodings
Section 24.166. String.indexOf( ): search a string
Section 24.167. String.lastIndexOf( ): search a string backward
Section 24.168. String.length: the length of a string
Section 24.169. String.localeCompare( ): compare one string to another, using locale-specific ordering
Section 24.170. String.match( ): find one or more regular-expression matches
Section 24.171. String.replace( ): replace substring(s) matching a regular expression
Section 24.172. String.search( ): search for a regular expression
Section 24.173. String.slice( ): extract a substring
Section 24.174. String.split( ): break a string into an array of strings
Section 24.175. String.substr( ): extract a substring
Section 24.176. String.substring( ): return a substring of a string
Section 24.177. String.toLocaleLowerCase( ): convert a string to lowercase
Section 24.178. String.toLocaleUpperCase( ): convert a string to uppercase
Section 24.179. String.toLowerCase( ): convert a string to lowercase
Section 24.180. String.toString( ): return the string
Section 24.181. String.toUpperCase( ): convert a string to uppercase
Section 24.182. String.valueOf( ): return the string
Section 24.183. SyntaxError: thrown to signal a syntax error
Section 24.184. TypeError: thrown when a value is of the wrong type
Section 24.185. undefined: the undefined value
Section 24.186. unescape( ): decode an escaped string
Section 24.187. URIError: thrown by URI encoding and decoding methods
Part IV: Client-Side JavaScript Reference
Chapter 25. Client-Side JavaScript Reference
Section 25.1. Anchor: the target of a hypertext link
Section 25.2. Anchor.focus( ): scroll to make the anchor location visible
Section 25.3. Applet: an applet embedded in a web page
Section 25.4. Attr: an attribute of a document element
Section 25.5. Button: see Input
Section 25.6. Canvas: an HTML element for scripted drawing
Section 25.7. Canvas.getContext( ): return a context for drawing on the canvas
Section 25.8. CanvasGradient: a color gradient for use in a canvas
Section 25.9. CanvasGradient.addColorStop( ): add a change of color at some point in the gradient
Section 25.10. CanvasPattern: an image-based pattern for use in a Canvas
Section 25.11. CanvasRenderingContext2D: the object used for drawing on a canvas
Section 25.12. CanvasRenderingContext2D.arc( ): add an arc to the current subpath of a canvas, using a center point and radius
Section 25.13. CanvasRenderingContext2D.arcTo( ): add an arc of a circle to the current subpath, using tangent points and a
radius
Section 25.14. CanvasRenderingContext2D.beginPath( ): start a new collection of subpaths in a canvas
Section 25.15. CanvasRenderingContext2D.bezierCurveTo( ): add a cubic Bézier curve to the current subpath
Section 25.16. CanvasRenderingContext2D.clearRect( ): erase a rectangular area of a canvas
Section 25.17. CanvasRenderingContext2D.clip( ): set the clipping path of a canvas
Section 25.18. CanvasRenderingContext2D.closePath( ): closes an open subpath
Section 25.19. CanvasRenderingContext2D.createLinearGradient( ): create a linear color gradient
Section 25.20. CanvasRenderingContext2D.createPattern( ): create a pattern of tiled images
Section 25.21. CanvasRenderingContext2D.createRadialGradient( ): create a radial color gradient
Section 25.22. CanvasRenderingContext2D.drawImage( ): draw an image
Section 25.23. CanvasRenderingContext2D.fill( ): fill the path
Section 25.24. CanvasRenderingContext2D.fillRect( ): fill a rectangle
Section 25.25. CanvasRenderingContext2D.globalCompositeOperation: specifies how colors are combined on the canvas
Section 25.26. CanvasRenderingContext2D.lineCap: specifies how the ends of lines are rendered
Section 25.27. CanvasRenderingContext2D.lineJoin: specifies how vertices are rendered
Section 25.28. CanvasRenderingContext2D.lineTo( ): add a straight line to the current subpath
Section 25.29. CanvasRenderingContext2D.miterLimit: maximum-miter-length-to-line-width ratio
Section 25.30. CanvasRenderingContext2D.moveTo( ): sets the current position and begins a new subpath
Section 25.31. CanvasRenderingContext2D.quadraticCurveTo( ): add a quadratic Bezier curve to the current subpath
Section 25.32. CanvasRenderingContext2D.rect( ): add a rectangle subpath to the path
Section 25.33. CanvasRenderingContext2D.restore( ): reset drawing state to saved values
Section 25.34. CanvasRenderingContext2D.rotate( ): rotate the coordinate system of the canvas
Section 25.35. CanvasRenderingContext2D.save( ): save a copy of the current graphics state
Section 25.36. CanvasRenderingContext2D.scale( ): scale the user coordinate system of the canvas
Section 25.37. CanvasRenderingContext2D.stroke( ): draw the current path
Section 25.38. CanvasRenderingContext2D.strokeRect( ): draw a rectangle
Section 25.39. CanvasRenderingContext2D.translate( ): translate the user coordinate system of the canvas
Section 25.40. CDATASection: a CDATA node in an XML document
Section 25.41. CharacterData: common functionality for Text and Comment nodes
Section 25.42. CharacterData.appendData( ): append a string to a Text or Comment node
Section 25.43. CharacterData.deleteData( ): delete characters from a Text or Comment node
Section 25.44. CharacterData.insertData( ): insert a string into a Text or Comment node
Section 25.45. CharacterData.replaceData( ): replace characters of a Text or Comment node with a string
Section 25.46. CharacterData.substringData( ): extract a substring from a Text or Comment node
Section 25.47. Checkbox: see Input
Section 25.48. Comment: an HTML or XML comment
Section 25.49. CSS2Properties: a set of CSS attributes and their values
Section 25.50. CSSRule: a rule in a CSS stylesheet
Section 25.51. CSSStyleSheet: a CSS stylesheet
Section 25.52. CSSStyleSheet.addRule( ): IE-specific method to insert a rule into a stylesheet
Section 25.53. CSSStyleSheet.deleteRule( ): delete a rule from a stylesheet
Section 25.54. CSSStyleSheet.insertRule( ): insert a rule into a stylesheet
Section 25.55. CSSStyleSheet.removeRule( ): IE-specific method to remove a rule from a stylesheet
Section 25.56. Document: an HTML or XML document
Section 25.57. Document.addEventListener( ): see Element.addEventListener( )
Section 25.58. Document.attachEvent( ): see Element.attachEvent( )
Section 25.59. Document.createAttribute( ): create a new Attr node
Section 25.60. Document.createAttributeNS( ): create an Attr with a name and namespace
Section 25.61. Document.createCDATASection( ): create a new CDATASection node
Section 25.62. Document.createComment( ): create a new Comment node
Section 25.63. Document.createDocumentFragment( ): create a new, empty DocumentFragment node
Section 25.64. Document.createElement( ): create a new Element node
Section 25.65. Document.createElementNS( ): create a new Element node using a namespace
Section 25.66. Document.createEvent( ): create an Event object
Section 25.67. Document.createExpression( ): create an XPath expression for later evaluation
Section 25.68. Document.createProcessingInstruction( ): create a ProcessingInstruction node
Section 25.69. Document.createRange( ): create a Range object
Section 25.70. Document.createTextNode( ): create a new Text node
Section 25.71. Document.detachEvent( ): see Element.detachEvent( )
Section 25.72. Document.dispatchEvent( ): see Element.dispatchEvent( )
Section 25.73. Document.evaluate( ): evaluate an XPath expression
Section 25.74. Document.getElementById( ): find an element with the specified unique ID
Section 25.75. Document.getElementsByTagName( ): return all Element nodes with the specified name
Section 25.76. Document.getElementsByTagNameNS( ): return all Element nodes with a specified name and namespace
Section 25.77. Document.importNode( ): copy a node from another document for use in this document
Section 25.78. Document.loadXML( ): populate this Document by parsing a string of XML markup
Section 25.79. Document.removeEventListener( ): see Element.removeEventListener( )
Section 25.80. DocumentFragment: adjacent nodes and their subtrees
Section 25.81. DocumentType: the DTD of an XML document
Section 25.82. DOMException: signal exceptions or errors for core DOM objects
Section 25.83. DOMImplementation: methods independent of any particular document
Section 25.84. DOMImplementation.createDocument( ): create a new Document and the specified root element
Section 25.85. DOMImplementation.createDocumentType( ): create a DocumentType node
Section 25.86. DOMImplementation.hasFeature( ): determine whether the implementation supports a feature
Section 25.87. DOMParser: parses XML markup to create a Document
Section 25.88. DOMParser.parseFromString( ): parse XML markup
Section 25.89. Element: an HTML or XML element
Section 25.90. Element.addEventListener( ): register an event handler
Section 25.91. Element.attachEvent( ): register an event handler
Section 25.92. Element.detachEvent( ): delete an event listener
Section 25.93. Element.dispatchEvent( ): dispatch a synthetic event to this node
Section 25.94. Element.getAttribute( ): return the string value of a named attribute
Section 25.95. Element.getAttributeNode( ): return the Attr node for the named attribute
Section 25.96. Element.getAttributeNodeNS( ): return the Attr node for an attribute with a namespace
Section 25.97. Element.getAttributeNS( ): get the value of an attribute that uses namespaces
Section 25.98. Element.getElementsByTagName( ): find descendant elements with a specified tag name
Section 25.99. Element.getElementsByTagNameNS( ): return descendant elements with the specified name and namespace
Section 25.100. Element.hasAttribute( ): determine whether this element has a specified attribute
Section 25.101. Element.hasAttributeNS( ): determine whether this element has a specified attribute
Section 25.102. Element.removeAttribute( ): delete a named attribute of an element
Section 25.103. Element.removeAttributeNode( ): remove an Attr node from an element
Section 25.104. Element.removeAttributeNS( ): delete an attribute specified by name and namespace
Section 25.105. Element.removeEventListener( ): delete an event listener
Section 25.106. Element.setAttribute( ): create or change an attribute of an element
Section 25.107. Element.setAttributeNode( ): add a new Attr node to an Element
Section 25.108. Element.setAttributeNodeNS( ): add a namespace Attr node to an Element
Section 25.109. Element.setAttributeNS( ): create or change an attribute with a namespace
Section 25.110. Event: information about an event
Section 25.111. Event.initEvent( ): initialize the properties of a new event
Section 25.112. Event.preventDefault( ): cancel default action of an event
Section 25.113. Event.stopPropagation( ): do not dispatch an event any further
Section 25.114. ExternalInterface: a bidirectional interface to Flash
Section 25.115. ExternalInterface.addCallback( ): expose an ActionScript method for execution from JavaScript
Section 25.116. ExternalInterface.call( ): call a JavaScript function from ActionScript
Section 25.117. FileUpload: see Input
Section 25.118. FlashPlayer: plug-in for Flash movies
Section 25.119. FlashPlayer.GetVariable( ): return a value defined in a Flash movie
Section 25.120. FlashPlayer.GotoFrame( ): skip to the specified frame of a movie
Section 25.121. FlashPlayer.IsPlaying( ): check whether a movie is playing
Section 25.122. FlashPlayer.LoadMovie( ): load an auxiliary movie
Section 25.123. FlashPlayer.Pan( ): move the viewport of the movie
Section 25.124. FlashPlayer.PercentLoaded( ): determine how much of the movie has loaded
Section 25.125. FlashPlayer.Play( ): play a movie
Section 25.126. FlashPlayer.Rewind( ): rewind the movie to its first frame
Section 25.127. FlashPlayer.SetVariable( ): set a variable defined by a Flash movie
Section 25.128. FlashPlayer.SetZoomRect( ): set the viewport of a movie
Section 25.129. FlashPlayer.StopPlay( ): stop the movie
Section 25.130. FlashPlayer.TotalFrames( ): return the length of the movie, in frames
Section 25.131. FlashPlayer.Zoom( ): zoom in or out
Section 25.132. Form: a <form> in an HTML document
Section 25.133. Form.elements[]: the input elements of a form
Section 25.134. Form.onreset: event handler invoked when a form is reset
Section 25.135. Form.onsubmit: event handler invoked when a form is submitted
Section 25.136. Form.reset( ): reset the elements of a form to their default values
Section 25.137. Form.submit( ): submit form data to a web server
Section 25.138. Frame: a <frame> in an HTML document
Section 25.139. Hidden: see Input
Section 25.140. History: the URL history of the browser
Section 25.141. History.back( ): return to the previous URL
Section 25.142. History.forward( ): visit the next URL
Section 25.143. History.go( ): revisit a URL
Section 25.144. HTMLCollection: array of HTML elements accessible by position or name
Section 25.145. HTMLCollection.item( ): get an element by position
Section 25.146. HTMLCollection.namedItem( ): get an element by name
Section 25.147. HTMLDocument: the root of an HTML document tree
Section 25.148. HTMLDocument.all[]: all HTML elements in a document
Section 25.149. HTMLDocument.close( ): close an open document and display it
Section 25.150. HTMLDocument.cookie: the cookie(s) of the document
Section 25.151. HTMLDocument.domain: the security domain of a document
Section 25.152. HTMLDocument.getElementsByName( ): find elements with the specified name attribute
Section 25.153. HTMLDocument.open( ): begin a new document, erasing the current one
Section 25.154. HTMLDocument.write( ): append HTML text to an open document
Section 25.155. HTMLDocument.writeln( ): append HTML text and a newline to an open document
Section 25.156. HTMLElement: an element in an HTML document
Section 25.157. HTMLElement.onclick: event handler invoked when the user clicks on an element
Section 25.158. HTMLElement.ondblclick: event handler invoked when the user double-clicks on an element
Section 25.159. HTMLElement.onkeydown: event handler invoked when the user presses a key
Section 25.160. HTMLElement.onkeypress: event handler invoked when the user presses a key
Section 25.161. HTMLElement.onkeyup: event handler invoked when the user releases a key
Section 25.162. HTMLElement.onmousedown: event handler invoked when the user presses a mouse button
Section 25.163. HTMLElement.onmousemove: event handler invoked when the mouse moves within an element
Section 25.164. HTMLElement.onmouseout: event handler invoked when mouse moves out of an element
Section 25.165. HTMLElement.onmouseover: event handler invoked when the mouse moves over an element
Section 25.166. HTMLElement.onmouseup: event handler invoked when the user releases a mouse button
Section 25.167. HTMLElement.scrollIntoView( ): make an element visible
Section 25.168. IFrame: an <iframe> in an HTML document
Section 25.169. Image: an image in an HTML document
Section 25.170. Image.onabort: event handler invoked when the user aborts image loading
Section 25.171. Image.onerror: event handler invoked when an error occurs during image loading
Section 25.172. Image.onload: event handler invoked when an image finishes loading
Section 25.173. Input: an input element in an HTML form
Section 25.174. Input.blur( ): remove keyboard focus from a form element
Section 25.175. Input.click( ): simulate a mouse click on a form element
Section 25.176. Input.focus( ): give keyboard focus to a form element
Section 25.177. Input.onblur: the handler invoked when a form element loses focus
Section 25.178. Input.onchange: event handler invoked when a form element's value changes
Section 25.179. Input.onclick: event handler invoked when a form element is clicked
Section 25.180. Input.onfocus: event handler invoked when a form element gains focus
Section 25.181. Input.select( ): select the text in a form element
Section 25.182. JavaArray, JavaClass, JavaObject, JavaPackage: see Part III
Section 25.183. JSObject: Java representation of a JavaScript object
Section 25.184. JSObject.call( ): invoke a method of a JavaScript object
Section 25.185. JSObject.eval( ): evaluate a string of JavaScript code
Section 25.186. JSObject.getMember( ): read a property of a JavaScript object
Section 25.187. JSObject.getSlot( ): read an array element of a JavaScript object
Section 25.188. JSObject.getWindow( ): return initial JSObject for browser window
Section 25.189. JSObject.removeMember( ): delete a property of a JavaScript object
Section 25.190. JSObject.setMember( ): set a property of a JavaScript object
Section 25.191. JSObject.setSlot( ): set an array element of a JavaScript object
Section 25.192. JSObject.toString( ): return the string value of a JavaScript object
Section 25.193. KeyEvent: details about a keyboard event
Section 25.194. Layer: an obsolete Netscape API
Section 25.195. Link: a hyperlink or anchor in an HTML document
Section 25.196. Link.blur( ): take keyboard focus away from a hyperlink
Section 25.197. Link.focus( ): make a link visible and give it keyboard focus
Section 25.198. Link.onclick: event handler invoked when a Link is clicked
Section 25.199. Link.onmouseout: event handler invoked when the mouse leaves a link
Section 25.200. Link.onmouseover: event handler invoked when the mouse goes over a link
Section 25.201. Location: represents and controls browser location
Section 25.202. Location.reload( ): reload the current document
Section 25.203. Location.replace( ): replace one displayed document with another
Section 25.204. MimeType: represents a MIME datatype
Section 25.205. MouseEvent: details about a mouse event
Section 25.206. MouseEvent.initMouseEvent( ): initialize the properties of a MouseEvent object
Section 25.207. Navigator: information about the browser in use
Section 25.208. Navigator.javaEnabled( ): test whether Java is available
Section 25.209. Node: a node in a document tree
Section 25.210. Node.appendChild( ): insert a node as the last child of this node
Section 25.211. Node.cloneNode( ): duplicate a node and, optionally, all of its descendants
Section 25.212. Node.hasAttributes( ): determine whether a node has attributes
Section 25.213. Node.hasChildNodes( ): determine whether a node has children
Section 25.214. Node.insertBefore( ): insert a node into the document tree before the specified node
Section 25.215. Node.isSupported( ): determine if a node supports a feature
Section 25.216. Node.normalize( ): merge adjacent Text nodes and remove empty ones
Section 25.217. Node.removeChild( ): remove (and return) the specified child of this node
Section 25.218. Node.replaceChild( ): replace a child node with a new node
Section 25.219. Node.selectNodes( ): select nodes with an XPath query
Section 25.220. Node.transformNode( ): transform a node to a string using XSLT
Section 25.221. Node.transformNodeToObject( ): transform a node to a document using XSLT
Section 25.222. NodeList: a read-only array of nodes
Section 25.223. NodeList.item(): get an element of a NodeList
Section 25.224. Option: an option in a Select element
Section 25.225. Packages: see Packages in Part III
Section 25.226. Password: see Input
Section 25.227. Plugin: describes an installed plug-in
Section 25.228. ProcessingInstruction : a processing instruction in an XML document
Section 25.229. Radio: see Input
Section 25.230. Range: represents a contiguous range of a document
Section 25.231. Range.cloneContents(): copy range contents into a DocumentFragment
Section 25.232. Range.cloneRange(): make a copy of this range
Section 25.233. Range.collapse(): make one boundary point equal to the other
Section 25.234. Range.compareBoundaryPoints(): compare positions of two ranges
Section 25.235. Range.deleteContents(): delete a region of the document
Section 25.236. Range.detach(): free a Range object
Section 25.237. Range.extractContents( ): delete document content and return it in a DocumentFragment
Section 25.238. Range.insertNode( ): insert a node at the start of a range
Section 25.239. Range.selectNode(): set range boundaries to a node
Section 25.240. Range.selectNodeContents( ): set range boundaries to the children of a node
Section 25.241. Range.setEnd( ): set the end point of a range
Section 25.242. Range.setEndAfter( ): end a range after a specified node
Section 25.243. Range.setEndBefore( ): end a range before the specified node
Section 25.244. Range.setStart( ): set the start point of a range
Section 25.245. Range.setStartAfter( ): start a range after the specified node
Section 25.246. Range.setStartBefore( ): start a range before the specified node
Section 25.247. Range.surroundContents( ): surround range contents with the specified node
Section 25.248. Range.toString( ): get range contents as a plain-text string
Section 25.249. RangeException: signals a range-specific exception
Section 25.250. Reset: see Input
Section 25.251. Screen: provides information about the display
Section 25.252. Synopsis
Section 25.253. Select: a graphical selection list
Section 25.254. Select.add( ): insert an <option> element
Section 25.255. Select.blur( ): take keyboard focus away from this element
Section 25.256. Select.focus( ): give keyboard focus to this element
Section 25.257. Select.onchange: event handler invoked when the selection changes
Section 25.258. Select.options[]: the choices in a Select object
Section 25.259. Select.remove( ): remove an <option>
Section 25.260. Style: see CSS2Properties
Section 25.261. Submit: see Input
Section 25.262. Table: a <table> in an HTML document
Section 25.263. Table.createCaption( ): get or create a <caption>
Section 25.264. Table.createTFoot( ): get or create a <tfoot>
Section 25.265. Table.createTHead( ): get or create a <thead>
Section 25.266. Table.deleteCaption( ): delete the <caption> of a table
Section 25.267. Table.deleteRow( ): delete a row of a table
Section 25.268. Table.deleteTFoot( ): delete the <tfoot> of a table
Section 25.269. Table.deleteTHead( ): delete the <thead> of a table
Section 25.270. Table.insertRow( ): add a new, empty row to the table
Section 25.271. TableCell: cell in an HTML table
Section 25.272. TableRow: a <tr> element in an HTML table
Section 25.273. TableRow.deleteCell( ): delete a cell in a table row
Section 25.274. TableRow.insertCell( ): insert a new, empty <td> element into a table row
Section 25.275. TableSection: a header, footer, or body section of a table
Section 25.276. TableSection.deleteRow( ): delete a row within a table section
Section 25.277. TableSection.insertRow( ): insert a new, empty row into this table section
Section 25.278. Text: a run of text in an HTML or XML document
Section 25.279. Text.splitText( ): split a Text node in two
Section 25.280. Textarea: a multiline text input area
Section 25.281. Textarea.blur( ): take keyboard focus away from this element
Section 25.282. Textarea.focus( ): give keyboard focus to this element
Section 25.283. Textarea.onchange: event handler invoked when input value changes
Section 25.284. Textarea.select( ): select the text in this element
Section 25.285. TextField: see Input
Section 25.286. UIEvent: details about user-interface events
Section 25.287. UIEvent.initUIEvent( ): initialize the properties of a UIEvent object
Section 25.288. Window: a web browser window or frame
Section 25.289. Window.addEventListener( ): see Element.addEventListener( )
Section 25.290. Window.alert( ): display a message in a dialog box
Section 25.291. Window.attachEvent( ): see Element.attachEvent( )
Section 25.292. Window.blur( ): remove keyboard focus from a top-level window
Section 25.293. Window.clearInterval( ): stop periodically executing code
Section 25.294. Window.clearTimeout( ): cancel deferred execution
Section 25.295. Window.close( ): close a browser window
Section 25.296. Window.confirm( ): ask a yes-or-no question
Section 25.297. Window.defaultStatus: the default status line text
Section 25.298. Window.detachEvent( ): see Element.detachEvent( )
Section 25.299. Window.focus( ): give keyboard focus to a window
Section 25.300. Window.getComputedStyle( ): retrieve the CSS styles used to render an element
Section 25.301. Window.moveBy( ): move a window to a relative position
Section 25.302. Window.moveTo( ): move a window to an absolute position
Section 25.303. Window.onblur: event handler invoked when the window loses keyboard focus
Section 25.304. Window.onerror: error handler invoked when a JavaScript error occurs
Section 25.305. Window.onfocus: event handler invoked when a window is given focus
Section 25.306. Window.onload: event handler invoked when a document finishes loading
Section 25.307. Window.onresize: event handler invoked when a window is resized
Section 25.308. Window.onunload: the handler invoked when the browser leaves a page
Section 25.309. Window.open( ): open a new browser window or locate a named window
Section 25.310. Window.print( ): print the document
Section 25.311. Window.prompt( ): get user input with a dialog box
Section 25.312. Window.removeEventListener( ): see Element.removeEventListener( )
Section 25.313. Window.resizeBy( ): resize a window by a relative amount
Section 25.314. Window.resizeTo( ): resize a window
Section 25.315. Window.scrollBy( ): scroll the document by a relative amount
Section 25.316. Window.scrollTo( ): scroll the document
Section 25.317. Window.setInterval( ): periodically execute specified code
Section 25.318. Window.setTimeout( ): defer execution of code
Section 25.319. Window.status: specify a transient status-line message
Section 25.320. XMLHttpRequest: An HTTP request and response
Section 25.321. XMLHttpRequest.abort( ): cancel an HTTP request
Section 25.322. XMLHttpRequest.getAllResponseHeaders( ): return unparsed HTTP response headers
Section 25.323. XMLHttpRequest.getResponseHeader( ): get the value of a named HTTP response header
Section 25.324. XMLHttpRequest.onreadystatechange: event handler function invoked when readyState changes
Section 25.325. XMLHttpRequest.open( ): initialize HTTP request parameters
Section 25.326. XMLHttpRequest.send( ): send an HTTP request
Section 25.327. XMLHttpRequest.setRequestHeader( ): add a HTTP request header to the request
Section 25.328. XMLSerializer: serializes XML documents and nodes
Section 25.329. XMLSerializer.serializeToString( ): convert an XML document or node to a string
Section 25.330. XPathExpression: a compiled XPath query
Section 25.331. XPathExpression.evaluate( ): evaluate a compiled XPath query
Section 25.332. XPathResult: the result of an XPath query
Section 25.333. XPathResult.iterateNext( ): return the next node that matches an XPath query
Section 25.334. XPathResult.snapshotItem( ): return a node that matches an XPath query
Section 25.335. XSLTProcessor: transform XML with XSLT stylesheets
Section 25.336. XSLTProcessor.clearParameters( ): delete all stylesheet parameter values
Section 25.337. XSLTProcessor.getParameter( ): return the value of a named parameter
Section 25.338. XSLTProcessor.importStylesheet( ): specify an XSLT stylesheet for transformations
Section 25.339. XSLTProcessor.removeParameter( ): delete a parameter value
Section 25.340. XSLTProcessor.reset( ): restore an XSLTProcessor to its default state
Section 25.341. XSLTProcessor.setParameter( ): set a stylesheet parameter
Section 25.342. XSLTProcessor.transformToDocument( ): transform a node or document to a new document
Section 25.343. XSLTProcessor.transformToFragment( ): transform a node or document to a DocumentFragment
About the Author
Colophon
Index
JavaScript: The Definitive Guide, Fifth Edition

by David Flanagan

Copyright © 2006, 2002, 1998, 1997, 1996 O'Reilly Media, Inc. All rights reserved. Printed in the United
States of America.

Published by O'Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.

O'Reilly books may be purchased for educational, business, or sales promotional use. Online editions are
also available for most titles (safari.oreilly.com ). For more information, contact our corporate/institutional
sales department: (800) 998-9938 or [email protected] .

Editor: Debra Cameron

Production Editor: Sanders Kleinfeld

Copyeditor: Mary Anne Weeks Mayo


Proofreader: Sanders Kleinfeld

Indexer: Ellen Troutman-Zaig

Cover Designer: Edie Freedman

Interior Designer: David Futato

Illustrators: Robert Romano and Jessamyn Read

Printing History:

August 1996: Beta Edition.


January 1997: Second Edition.

June 1998: Third Edition.

January 2002: Fourth Edition.

August 2006: Fifth Edition.

Nutshell Handbook, the Nutshell Handbook logo, and the O'Reilly logo are registered trademarks of
O'Reilly Media, Inc. JavaScript: The Definitive Guide , the image of a Javan rhinoceros, and related trade
dress are trademarks of O'Reilly Media, Inc. Java™, all Java-based trademarks and logos, and
JavaScript™ are trademarks or registered trademarks of Sun Microsystems, Inc., in the United States and
other countries. O'Reilly Media, Inc. is independent of Sun Microsystems.

Mozilla and Firefox are registered trademarks of the Mozilla Foundation. Netscape and Netscape Navigator
are registered trademarks of America Online, Inc. Internet Explorer and the Internet Explorer Logo are
Other documents randomly have
different content
Biró: No látod. Ezt mondom én is. Hagyjunk mán a
fiatalabbaknak is.
Biróné: Vén szamár. Mindig is az vót. Hóttáig se hagyja el a
szamárságát. Most, mikor pecsenye jön, feláll az asztaltúl. Nem
tudom, hogy lehet jóllakni ebéd víge előtt… Megvót a tagosítás, nem
vót jó, hogy biró vótál? Meg az erdőeladás. Sajnállod, hogy a tied
lett, a mi a’ lett? Most jön a legelőosztás. Mán nincs étvágyod? Nem
szígyelled magad?
Biró: De ha az osztást odaígéred a szegínysígnek.
Biróné: Ne tettesd mán magad! Ne tettesd! Szeretem az
ilyeneket. Tán nem csínálják meg a nagy gazdák a te e l l e n e d r e !
Biz én nekem nagyon fáj a fogam rá, hogy egy kicsit kikerekítsük a
Rétekalját. Ó be gyönyörű egy táblát lehet lesz hozzá hasítani a
közlegelőbül. Csak a jedzővel kell egyességbe lenni. De ha nem vagy
biró, köpnek rád!
Biró: Jó van Sári, jó van. De meglásd, nagyobb legelőt veszítesz,
mint a mit nyersz. Pengő Kováccsal nem lehet csak úgy kukoriczázni.
A mit az ecczer a fejibe vett… Én ugyan szívembül-lelkembül utálom
a czudar kutyát, a komisz garasos kupecczit, – de a Lizije, Sári, az
fájn kis jány. Ha űtet nem szeretem is nászomnak, de aztat
szeretném menyemnek.
Biróné: No bizony nincs is több jány a világon. De
belehabarodtatok ebbe a mázas csuporba. Kap a mi fiúnk akár
papkisasszonyt.
Biró: Nem kell nekem se papkisasszony, se más kisasszony, csak
a Lizi. Mer a Jóskának se kell. Oszt Pengő Kovács nem Sári bíró. Ha
az ecczer árát szabja, meg is veszi. Pedig én belelátok a veséjébe.
Nagyon ráéhezett mán a biróságra.
Biróné: Vár, ha muszáj.
Biró: Nem vár a!
Biróné: Nem?
Biró: Aligha. Kiszámította az a maga idejit.
Biróné: No meglássuk.
Biró: Iszen persze hogy meglássuk. De ujfent csak aszondom,
hogy jól ismersz. Sári bíró vagyok a világ előtt, de előtted nem
vagyok. Én neked ez világon mindent megcsináltam, amire csak
szádat feltátottad. Emlékszel, milyen csufságokat vettem magamra a
kedvedért. Bár azt az egyet ne tettem vóna, mikor a 87-iki rossz
terméskor addig óbégattál a fülembe, hogy az aratók keresztjébül
mindbül visszavettem egy kévét… Mindent megcsináltam, meg is
csinálok, a mit akarsz. Hanem egyet nem. Ha a gyerekik bóldogsága
van bajba, azt nem adom egy marhalegelőér. (Végigmegy a szobán,
aztán megáll a biróné előtt, a ki elhallgatva, megszeppenve figyel
rá.) Hanem addig se bú, se kár. Minden jól van, jól csináltad öregem.
Anyjukom, vén csontom. (Megveregeti a hátát.) Szikkadt
óldalbordám. Héj be elég vóna tíz asszonnak az eszed.
Biróné (boldogan hallgatja, egyszerre fölriad): Nono, csak még
ne siess. Hallom már a krákogását annak a zsivánnak. De most már
osztán te állj sarokra, mert Pengő Kováccsal nem asszonynak való
perbe szállani.
Biró: Jójó, nem tanált ki még olyat Sári, a mit a biró meg nem
tudott vóna csinálni. (Összenevetnek.)
Pengő Kovács (jön): Aggyon az isten áldást, bíkessíget.
Biróné: Aggyon isten. Isten hozta nálunk, kedves keresztkomám
uram.
Pengő Kovács: Köszönöm, magam is igyekeztem kedves
keresztkomám asszony. Hogy vannak ijenkor. Mi dógozódik, sütődik,
főződik?
Biróné: Hát csak ípp hogy megvagyunk nagy csendessígbe, még
a víz is megposhad nálunk, nincs a mi zavarja.
Pengő Kovács: Az a jó, az az egíssíges. Csak soha ne legyík
háborúság.
Biró: Bolond beszéd, koma, ha háború nem vóna, mi lenne a
világbul. Most is az a baj, hogy már rígen vót 48, nagyon
elszaporodott az emberi fajzat, muszáj egymást enni, ha mán a
muszka nem esz bennünket.
Pengő Kovács: Az is valóigaz, kedves biró komám uram!
(Nevet.)
Biróné: Tegye le azt a gubát, kedves komám uram.
Pengő Kovács: Elbírja a birka is a gyapját kedves
komámasszony.
Biró: Azt is megnyírik níha koma.
Pengő Kovács: Eleget is sajnájja, béget az ojankor.
Biróné: De nincs is itt elég meleg úgyi?
Pengő Kovács: De jó meleg van. (Leteszi a gubát.) Hej lehet
melegsíg, szíp bogja fák vagynak az udvaron!
Biró: Másnak az udvarán is van!
Biróné: Egyformán tőtt az e r d ő b ű l .
Pengő Kovács: Há’, ha egyformán tőtt vóna. Akkor jó vóna!
Akkor tudom nem alkudnánk a két tinón, csak belenyulnék a
lajblizsebbe, oszt azt kérdeném – hogy adik? (Leülnek.)
Biró: Kérdeni se kell azt, csak fizetni.
Pengő Kovács: Ha vón mibűl. De még nekem nem szógált a
szerencse… Hát tán csak nem tartják magukat még most is a három
ötvenesnél?
Biró: Egy hét óta mennyit hízott az a marha. Tán azír eresszük
lejjebb az árát?
Pengő Kovács: Vín kutya kend bíró komám. Még a
szárazmínkűt is meg akari fejni.
Biró: Meg biz én koma, ha hagyi magát.
Pengő Kovács: Jól teszi. De azír két ötvenes mindig elíg azír a
két bocziír. Egy százas mán uras fizetsíg!
Biró: Hm. Az még a csordásnak is kicsi bér. Ojan csontú
marhákír. Csak a szarva míjen lesz annak! Két esztendőt se adok
neki, 500 pengőt ér darabja.
Pengő Kovács: No. Párjáír is sok lesz. Nincs nekem olyan
szerencsém, mint másnak. Megírem, hogy 500 helyett ötöt kapok
írtek. Ha ötön el nem viszik… Peig csak ezután gyün velek a baj,
eddig a pásztor meg a jó isten vót a gondviselője.
Biró: Iszen ha a debreczeni kollégyiumot is kijárta vóna, nem
ennyi vón az ára.
Pengő Kovács: Hehehe. Vagy ennyi se.
Biróné (Az asztalon levő tál pattogatott kukoriczát elébe tolja):
Tessék komám uram.
Pengő Kovács: Köszönöm, nem ílek vele. Én mán csak úgy
vagyok, hogy „jó nekem a hús is.“
Biróné: Peig e jó helyrűl kőtt. A kied jánya hozta. Ej istenem, be
drága jó kis jáncseléd. Úgy szeretem mint a magamét. Hát még a
fiam!
Pengő Kovács: Az én jányom is jó szívvel van a Jóska
gyerekhez.
Biróné: Vettem észre. A genge jószág tán még utána is halna,
ha ez a bolond fiu másra kacsintana vagy egyet.
Pengő Kovács: Nagyon összeszoktak. A Jóska is hamarébb
elmenne a burkusháborúba, minthogy más jánhoz kínszerítsík.
Biró: Hát, mán az én fiam azt teszi, a mit én akarok.
Pengő Kovács: Az én jányom is. Magam nevelése… Na. Avval a
tinókkal mi lesz hát?
Biró: Megmondom. Látom, azt a harmadik bankót nagyon
nehezelled. Isten neki, szakasszuk ketté. Fele essen ide, fele essen
oda, – fene essen bele.
Pengő Kovács: Nem úgy lesz a bátyámuram. Mer nem ugy
mírik az igasságot, nem arasszal, se nem réffel, se nem víkával. Nem
igassággal mírik az igasságot. Hanem ö k ö l l e l . Mámost nízzük
csak össze a mi két öklünket. Láti kend az enyimet, mien csontos,
kemíny, – a kendé meg mien puha, erőtelen. Huszonhárom
esztendeje ül kend a husos tálnál, csak kanalaz. Kend mán el is
puhult, mer ídes bor kell kendnek, ha bemegy a városba az urakkal,
pukkanós bor! De nekem a ríti viz is jó vót eddig, mint a bíkának,
meg a bikának. Azír vagyok én ilyen fene bika, mer én minden
garasír megverekettem, hát drága nekem a garas. Kend meg csak
ípp hatta, hogy hadd gyűljön ott a k o m ó t b a … He, he, he.
Drágább nekem a píz, mint kendnek. Azír ne lelketlenkedjék velem.
Aggya ide a százasír azt a két kis sovány boczit.
Biró: Tán hogy igy papolsz. Stólának hagyjak egy ötvenest.
Pengő Kovács: Felit mán lehatta! Jó, no. Isten neki fakereszt.
Hogy öröme legyen benne, hogyha mán ennyire nőttek azok a
boczik, isten irgalmábul, ingyen pásztor kezin, falu gulyájába, – hát
mondok, hogy mégis öröme legyen maguknak is bennek: ráadok
még egy tizest! (Kezet nyújt, parolára. A biró belecsap.)
Biróné: Levágom, de rádást kell adnod öcsém! Hun a kötél ára?
Ötven grajczár!
Pengő Kovács: Ihol e. (Kiszámolja a pénzt. Elébb az ötven
krajczárt a biróné markába.)
Biróné (megköpködi a pénzt): Fí, fí, apád, anyád ide jöjjön.
Pengő Kovács (leszámolja a bankókat): Na. Dicsértessék az
Uristen ő szent felségének a neve. Szóljon ki néném az ablakon,
hajtsák át azt a két tinót hozzám.
Biróné: Elébb áldomást kell rá inni. (Tölt a dióléből, aztán
kimegy.)
Biró: Jó két ökörborjut kaptál, öcsém.
Pengő Kovács: Gyenge csontja van, úgy nízem.
Biróné (visszajön): No, ha már ez megvan, egyuttal
megalkudhatnánk a másik boczira is! Ugye kedves komám, arra a
drága szíp kis üszőboczira! arra az én kedves lelkem
keresztjányomra. (Vállára vereget.)
Pengő Kovács: Hát iszen eladó. He-he-he.
Biróné: Mit akarsz vele öcsém?
Pengő Kovács: Mit? Jókedvembe vagyok. Megmondom… Hát én
ugyan vele adom minden rétyenruttyomat, fődeimet, kaszálóstul,
legelőstül, házamat, butoromat, még akar a fehérgunyámat, meg az
ócska szeredásomat is. He-he-he. Hozzám gyün lakni a vejem,
mindenem az övé.
Biró: Sok lesz az nekünk.
Pengő Kovács: Sok?
Biróné: Ajaj, nagyon sok!
Pengő Kovács: No hát akkor kedves ídes komámasszony, kend
is adhat rádást, egy ökörvezető kötelet.
Biróné: Mi lenne az?
Pengő Kovács: Mi?… A b í r ó s á g !
Biróné (dühbe jön): Bolond kend Pengő Kovács.
Biró (ráförmed feleségére): Hogy vón bolond! Nem látod, hogy
csakúgy füstöl belőle az ész.
Pengő Kovács (vörösen): He-he-he. Pég itt csak e g y ész
füstöl biróbátyám, de ott, (rámutat a biró fejére) k e t t ő !
Biróné (mézédesen): Öregem, apjukom, ugyi elfelejtettem
neked mondani, hogy Zsuzsi néni azt suttogta ma reggel a filembe,
hogy hallja, a mi fiúnk igen utána vetette magát az ő Manczi
unokájának. Hát hogy neki nincs ellenére a dolog; de még inkább
azt fogadta, az esküvőkor testámentumot tesz, mindenét rájuk
örökíti.
Biró: Rajtam nem mulik, csak a gyerekiken. Én nem szólok bele,
ha ők így akarják, hónap is megeshet a kézfogó.
Biróné: Persze, a bíróválasztás után, a lagzin egy füst alatt
ellakhatjuk a jegyváltást. Már az csak biztos, hogy egyhangu lesz a
választás.
Pengő Kovács: Hát én mondtam-é, kedves biróné
komámasszony, hogy ha a falu, a hogy suttogják, hónap rám
tukmálja a bíróságot, egyúttal a Liszkát a lakzin elkendőzzük Tass
Mihály öcsémmel.
Biróné: Úgy? Jó egészséget hozzá.
Pengő Kovács: Hasonlókíppen… Hát akkor mehessünk.
Biró: Isten hírivel.
Pengő Kovács (míg a gubát veszi felfelé, az ablakon kinéz): Hé,
be jó két tinó. Hogy lípnek hozzámfele. Nígy esztendős korára, – biz
igaza van kedves komám, – eggye-eggye megíri az 500 pengőt.
Biró: Gyenge biz annak a csontja. Sose lesz belőle embersíges
marha. Tán bolond lettem vóna máskíp eladni.
Pengő Kovács: Majd elválik. Ha sajnáli kelmed, visszaadhati a
pízt.
Biró: Ha sajnálod, te is itthagyhatod.
Pengő Kovács: He. He. He. (Kezet nyújt.) Azír nincs harag.
Biró: Mír vóna? Láttam én mán karón varnyut.
Pengő Kovács: Sz’ippa!
Biróné: Rádfül a guba!
Pengő Kovács: Biz itt jó melegsíg van. Ej jó kis erdő vót a
Gyertyámos. Szeretném megszámoltatni a ki eladta!
Biró: Hát az ídesapádat, ebadta.
Pengő Kovács: He. He. He. Jóegíssíget. (Elmegy. Biró, biróné
összenéznek. Igen dühösek, az asszony toporzékol.)
Pengő Kovács (bekopogtat az ablakon. A biróné kelletlenül
kinyitja.) Igaz a! Nem gyünnek el hónap hozzám a bírólagziba? Meg
a kézfogóra? Kedves bátyám, S á r i b í r ó ?
Biró: El én. El én! Ha te is elgyüsz arra, hozzánk. Ídes öcsém,
pakfonkovács!
(Függöny.)
MÁSODIK FELVONÁS.
(A színben. Egyik oldalon az istálló vályog oldalfala, rajta ajtó. Két
oszlop tartja a szín tetejét, a hóborította kertre, távol havas
háztetőkre látni, zuzmarás ákáczok közt. Szép napsütéses délután. A
hó becsapott a színben szélen levő tárgyakra, szekerek, ekék,
gazdasági szerszámok élére. Galyfa van felhalmozva, felvágni való.
G e d i az aprító tőkénél épen galyfát apróz. J ó s k a egy tőkén ül,
búsúl.)
Jóska: Éjjajaj!
Gedi: Háj, háj!
Jóska: Héjjajajajj!
Gedi: Hájaháj! (Libagágogás hallatszik az ólból.)
Jóska: Egyen meg a fene benneteket.
Gedi: Kit te?
Jóska: Ezt a libát e! Ütte vón meg a gutta, mikor az első kibújt a
tojásbul.
Gedi: Mír?
Jóska: Hullott vón le a körme, a ki az első tallát kiczibálta.
Gedi: Nono!
Jóska: Még a porába is dög essen, a ki kalamust faragott belőle!
A ki az első betűt kipingálta vele! A fúrt eszű! Nem vót jobb dóga,
csakhogy engem keserítsen!
Gedi: Há mi bajod neked vele?
Jóska: Azír kell biró a faluba, kénkű vesse fel, hogy a sok buta
helyett irkáljon.
Gedi: Hát osztán?
Jóska: Hát’sz ha bíró nem vóna, akkor nem tiltottak vón el
engem a szeretőmtűl.
Gedi: Áhá, pedzem má.
Jóska: Éjjajaj.
Gedi: Háj, háj!
Jóska: Héjjajajajj!
Gedi: Hájaháj! (Bemegy az ólba s visszaszól.) Jóska!… Te… Ugrál
a szived? Gyün Manczi. A mennyasszonyod!
Jóska: Mennyasszonya a czempéternek. (Jóska leül a Gedi
helyére a tőkéhez s szórakozottan vagdalja az ágakat a kis baltával.)
Manczi (bejön s egy ideig nevetve, hallgatva néz Jóskára.) Én is
itt vagyok.
Jóska (felnéz): Jó van. Te bajod.
Manczi: Ez jó szívvel lát! Ez módis! Így kell fogadni a
menyasszonyt?
Jóska: A’ vagy? Oszt ki a vőlegíny, a bóldogtalan?
Manczi (nevet): Te vónál tán.
Jóska: Én?
Manczi: Hát!
Jóska: Ühöm.
Manczi: Egy kicsit szaporábban is pisloghatnál rám. Melegebben
ebbe a hidegbe.
Jóska: Hé Manczi szógám, nem értek én az ilyesmihez.
Belefagyott mán én belém a lílek.
Manczi (leül szemben egy tőkére): Tudják, ha nem mondják.
Vóna csak itt Lizi.
Jóska: Lizi? A más.
Manczi: Más?
Jóska: Más.
Manczi: Mír?
Jóska: Azír.
Manczi: Nem vagyok ojan jó?
Jóska: Nem hát.
Manczi: Hát ojan kedves?
Jóska: Asse.
Manczi: Hát ojan szíp?
Jóska: Ojan?… ojan nincs is több.
Manczi: Jó gusztusod van.
Jóska: A van.
Manczi: Rossz vagyok?
Jóska: Nem vagy.
Manczi: Kiállhatatlan vagyok?
Jóska: Mír vónál?
Manczi: Csufság vagyok?
Jóska: Hagyj mán nekem bíkít. Én felőlem az isten angyala is
lehetsz.
Manczi: Azelőtt mégis jobban tudtál hozzám szólani.
Jóska: Manczi fiam, annak is megvan a maga oka-foka. Mióta a
gatyám korczába egy szál hajat tanáltam belevarrva, azótátul óta rád
se tudok gondolni. Annak te vagy a szerzője. Az a vín boszorkány
nagyanyád komendálta neked biztossan. Ti akartatok avval
megkötni. De rajtam nem fog az öreganyád praktikája. Visszájára
sült el.
Manczi (a tenyeréből felemeli égő arczát): Mondtam én
nagyanyámnak előre. Nem fog mán a babonaság. Kiment divatbul.
Jóska: Alighanem… Különben hogy vagy hé?
Manczi: Köszönöm, maradhatósan. Hát te?
Jóska: Én is megvagyok. (Csönd.)
Manczi: De nincs hideg.
Jóska: Nincs. Jó genge üdő van. (Csönd.)
Manczi: Mán mennyek?
Jóska: Felőlem maradhaccz. (Csönd.)
Manczi (a favágásra int): Szaporátlan munka.
Jóska: Ráér. (Csönd.)
Manczi: Jóska.
Jóska: No.
Manczi: Isten álgyon.
Jóska: Tíged is. (Manczi tovább ül. Csönd.)
Manczi: Te.
Jóska: No.
Manczi: Szójj mán valamit.
Jóska: Szalagy csak, híjd át ide Lizit.
Manczi (felugrik): Lizit?
Jóska: Aztat.
Manczi (megáll): A Lizit?
Jóska: Hánszor monygyam még?
Manczi: Szaladok. (Kimegy a kert felé s visszajön.) Minek?
Jóska: Csak. Szeretném látni.
Manczi: Megyek. (Elmegy.)
Jóska (utánakiált): Manczi!
Manczi (visszajön): Na.
Jóska: Te!
Manczi: No.
Jóska: Monygyad csak lelkedre. Szeretsz te éngem?
Manczi: Szeretlek hát.
Jóska: Kis Ferit is szereted?
Manczi: Mír ne? Azt is.
Jóska: Kovács Lajost is?
Manczi: Aztat is.
Jóska: Az ördög sámfázzon ki. Hát mír szereted űket?
Manczi: Mír ne szeretném? Mindenik fiú a.
Jóska: Akarméknek lennél felesége?
Manczi: Mír ne? Ha megkírne.
Jóska: Jó van! Hát csak szaladj, hallodi. Mondd meg Lizinek,
hogyha Istent ösmér, szökjön át ide egy kicsit, beszílni akarok vele.
No. Egy-kettő. Ugorgy hát. A fáját a bokádnak…
Manczi: Jó van na. (Vidáman, frissen elszalad.)
Gedi (kijön az ól ajtaján): Jóska. Mondanék valamit.
Jóska (feláll s átadja a helyét a legénynek): Ki vele.
Gedi: Hátha jó talu vón az a liba tolla.
Jóska: Mi?
Gedi: Hallodi. Csináltam én pennával egy nótát, ha azt
kidanolnám a faluba, nem lenne mír tiltani tűled a szeretődet.
Jóska: Mír ugyan?
Gedi: Nem lenne többet biró az apád.
Jóska: Oan mester vagy. Hát csak danold ki.
Gedi: Nem lehet ám. Lakat alá títet az anyád.
Jóska: Az is baj?
Gedi: Neked nem. (Fütyöli a nótát.)
Jóska: E vón a?
Gedi: E.
Jóska: Jól szól.
Gedi: Ugyi? (Elevenen.) Hát még a verse!
Jóska: Fujd el.
Gedi: Ha vóna kurázsim.
Jóska: Majd megrázlak, akkor lesz. (Fütyöli.)
Gedi: Tudod?
Jóska: A filembe ragadt.
Gedi (dalolni kezdi):
Sári bíró hum, hum, hum…
Az apádrul van e!
Jóska: Antul jobb!
Gedi (halkan dalol):
Sári bíró hum, hum, hum,
Az a bíró hum, hum, hum.
Komótba tartják az eszit,
Hogyha kell, csak előveszik,
Sári bíró hum, hum, hum.

Jóska (nevet, oldalba döfi Gedit egy ággal): Egyen meg a fene
te csámpás.
Gedi (buzgón dalolja a másik verset):
Sári bíró, hum, hum, hum!
Az a bíró, hum, hum, hum!
Megvámolta a keresztet,
Mert kevés magot eresztett,
Sári bíró hum, hum, hum!

Jóska (kaczag): A nyű essen a kis bűröd alá.


Gedi:
Sári bíró, hum, hum, hum!
Az a bíró hum, hum, hum!
Tudja mit tegyen: ecczerre!
Csak az asszon nízzen erre!
Sári bíró hum, hum, hum!
Jóska: A kű őrje meg ezt a sovány csontodat. Hun bujik ki
belőled ez az ilyen te?
Gedi:
Tudja mit tegyen ecczerre,
Csak az asszon nízzen erre!
Sári bíró hum, hum, hum!

Biróné (beront): Hallgatsz el te lucziper. Mingyán agyonverlek.


(Felkap egy galyat, azzal veri.) Nóta kell neked te, nóta? majd én
megnótázlak. A birót venni nótába? Megájj kúdus nyavoja! Tolvaj,
semmiházi! Ágrúl szakadt kutya te! Itt felfogok a semmiházin, a kin
mindenki kiád, a ki lábakapczájának se kell senkinek. Gömbölyüre
hízlalom a sovány kutyát, mahónap emberi formája se lesz a
disznónak! Oszt ilyen csúfságot tesz rajtam! Te kutya te! Tüzes
harapófogóval típetem ki a nyelved te! Bíjogot süttetek a hegyire,
annyit se mondasz többet: bikk-makk! Te! Verscsináló, fű! (Köp.) Ha
még értene hozzá. Te köpedelem. Rá se megy!
Gedi (felugrik): A bizon rámegy.
Biróné: Rá az anyád nevire. Hiszen két szót nem tudsz
egymásután tenni becsületesen, te félkegyelmű. Ki ne mond valaki
előtt a neved, mert kinevet. Oszt még ez akarna valakirűl nótát
csinálni! Te félszájú te!
Gedi (pulykaméreggel): Ha’ vagyok, félszájú vagyok, utósó
vagyok, naplopó, korhely, csavargó, asse bánom, ha tolvaj vagyok,
meg ha zsivány, meg ha éhes, akarmit kennek rám, asse bánom!
Meg asse bánom, ha bottal püföl, meg ha ódalruddal, meg ha
becsukatnak, meg ha rám teszik a czímert se bánom. De az én
versem rámegy! Mer a vers. Mer én tudom mi a, de maga
gazdasszony, oszt annyit se tud hozzá, mint a csikó az ólba.
Biróné: Takarodj előlem, te kocza versfábrikátor. Láttam én mán
legényt, a ki nótába vett valakit, de az ojan szál legény volt, az egész
falu jánya veszekedett utána. Ojan bajusza vót, mint a vicispán
hajdujának. Nem is íjen málészáju keszegódalú csámpás. E tudna
valamit?
Gedi: Á, á! tugyuk, hogy szokták ezek a nagy bajuszúak. Csak
belemongyák a nótába a nevét valakinek, megvan. De az én
nótámbul egy szó se vót egybe a másikkal, míg én nem kőtöttem.
Biróné: Kőtötted a sárga tojást. Tán nincsen benne száz gajdoló
nótába is, te lőcslábú, hogy „hum, hum, hum“ meg „bum bele bum“.
Gedi: No de most mán elíg legyík, mert megharagszok. (Hirtelen
méregbe jön.) Ej, de mit papolok itt íjen nípsíggel, a mék azt se
tudja mi fán terem a nóta. Itt a fejsze, fogja. Én tudom istenem nem
vágok többet egy darab fát sem a biró uram lakodáréjára. Hamarébb
kivágom az egész biróságot; mint az odvas fát. Aggyisten! Osztán ha
hónap az egész falu a filibe danolja gazdasszonyomnak ezt a nótát,
jó lesz, ha mindenkinek megmondja, hogy „nem megy rá!“
Aggyisten. (Kevélyen elmegy s odakint rázendíti a nótát.)
Biróné: Utána! Meg kell fogni a kutyát! Pinczébe, kalodába, ki ne
danolja azt a nótát. (Biró jön.) Jaj istenem, istenem! Jaj teremtő
szent atyám! Jaj menybéli mindenható egy isten! Jaj megváltó szent
isten!
Biró: Ki halt meg no! Mi a? Mi a?
Biróné: Elmehetsz mán, elmehetsz a híreddel. Nem tesznek mán
meg kerülőnek se. Megvan mán a jó híred örökre. Hallod, hogy
vonítja a kutya végig a falun. Halli, mán a gyerekek is visítják utána!
(Sír.)
Biró: De hát mi lelte anyádat?
Jóska (közönyösen): Ez a szamár Gedi nótába tette ídesapámat.
Biró: Tyhű a kutya, macska! Hogy tudod, hogy íngem?
Jóska: Én nem tudom, csak gondolom, mert úgy mongya, hogy
Sári biró.
Biró: Akkor én vagyok! Na. Püff neki. Mír nem fogtátok itt az
ebugattát, hogy ki ne kürtölje legalább hónapig.
Jóska: Ídesanyám lebecsmelte, hogy rossz a nótája, oszt a
félkótyó csak megmírgeskedett, itt hagyott.
Biró: Na. Ez az asszonysegítség. Két kézzel keservesen
megfosztja a talut, oszt egy szájjal mind elfújja: fí! vót – nincs.
Biróné (sírva): Ilyen a szegény szerencsétlen asszony sorsa, a ki
olyan embernek lett a felesíge, a kit nótába lehet venni.
Biró (mérgesen): Te csináltál belőlem futó bolondot. Mindíg
belekotyogtál a dolgomba.
Biróné: Mer mír vagy ilyen gyatra. Ha ember vónál, sose kellett
vóna beleszólnom. De nekem kellett a fejemet törni mindenen.
Biró: Nagy baj bizony, ha az ember gyáva, de még nagyobb, ha
az asszony okos.
Biróné: Én is azt mondom. Vónék csak én férfi, egyszer se
gondóna rá az a köjök, hogy a nevem nótába tegye.
Biró: Nem ám, mert sose hattad vón, hogy a feleségem asszony
mindenbe belekottyanjon.
Biróné: Nem bizony, mert mire az én felségem valamit kitalált
vóna, férjemuram már rég meg is csinálta vón.
Biró: No csak még hangosabban. Már mozognak is a
szomszédban.
Biróné: Csak annyit mondok, meglegyen hónap az a választás.
Biró: Te beszélsz? Elrontja az egész istoriát és neki áll feljebb. Ha
most e miatt boszut nem tudok állani azon a kutya Pengő Kovácson,
megüt a guta, megüt a guta!
Biróné: Azt a legelőosztást… (Sír.) Ha a Rétekalját ki nem
kerekítem, belehalok.
Biró: Hallgass. Akkor lett vón eszed, mikor azt a fiút
eleresztetted. Azóta az egész falu bőgi a nótáját. De vigyázz, mert
ecczer rádordítok. Addig nem halok meg.
Biróné: Ahhoz ért. Csak ordítson, azt tud, de el is kőtözök…
Biró: Nono. Harminc esztendeje meghótt az anyád. Nem
mehetsz hozzá.
Biróné: Vált sajnálja kend. Bár hozzá is kőtözhetnék mán. Úgy
sincs mit keresnem ezen a világon. Mit csinálok én mán? Ha mán
még bíróné se leszek.
Biró: Ki mondta, hogy nem. De bizony az leszel.
Biróné: Biztat kelmed éngem. A Rétekalja is tudom úgy marad,
az én részemet biztosan a legelő tulsó sarkán szelik ki.
Biró: Dehogy is szelik, megkapod a hogy kivánod.
Biróné: Milyen tengeri teremne ott?
Biró: Meg is terem.
Biróné: Milyen repcze, harmincz magot adna.
Biró: Meg is adja.
Biróné: Hát úgyi megtróbálod azír.
Biró: Mit?
Biróné: A bíróságot.
Biró: Meg a ki teremtette!
Biróné (hizelegve czirógatja): Vénuram, öreguram, csak most az
egyszer csináld meg, soha többet semmitse kívánok tűled. Nem
bánom ezután, ha egyebet se teszel, csak a pipádat piszkálod.
Biró: Jójó.
Biróné: Sose mozogj ezután. Olyanra ülheted magad, mint egy
sütőtök.
Biró: Meg is teszem.
Biróné: Nem bánom öregem, ha olyan bolondokat teszel is, mint
a tokaji hegy. Nem szólok bele.
Biró: Okosan, okosan.
Biróné: Ha az egész világ a hátadon szánt is, csak nevetek rajta.
Biró: Jól emlékezz erre a szódra, Sári. Mer ha még ecczer
beleszólasz a dógomba, istókuccse én kőtözök el a háztul.
Biróné: Soha többet. Csak most süsd el ezt a bajt. Soha többet!
Biró: Jóska.
Jóska (a ki mosolyogva nézte az öregeket): Tessík apámuram.
Biró: Azt a… ezt a… hallottad?
Jóska: Hallottam.
Biróné: Mit?
Jóska: Semmit.
Biró: Akkor jó. Hát annya, úgy vigyázz, tanum van kettő. Egyik a
te fiad, a másik az én fiam. No.
Biróné: Ó, ó, vén bolond. Mán semmi baja. Tréfál. De pedig
azóta ki is törte a nyakát a háta megett Gedi.
Biró: Ne busujj. Te csak ne busujj. Csak te legyél jókedvű, mert
a mit mondtam, megmondtam!
Biróné: No hát akkor egy-kettő. Vágjatok fát. Mer annyi sincs,
hogy hónap megrakjam a tüzet. Pedig sok kell a nagy lakomához.
Biró: Az is meglesz. Magam is hozzávetkezek.
Biróné: Sose vetkezz olyan nagyon, hogy még beteg legyél a
nyakamra. Hogy van most is a nyakadba ez a kendő. (Megigazítja.)
Így ni. Meg ne fázz nekem. Nincs pénz patikára. Jajaj, mennyi baj
van ezekkel a vén gyerekekkel. (Elindul s visszaszól.) No, hadd
halljam azt a baltacsattogást. (El.)
Biró: Meglesz!
Jóska: Rögvest!
Biró: Hé fiam, fiam.
Jóska: Tessék.
Biró: Sose házasodj meg fiam.
Jóska: Hm.
Biró: Elment már anyád? Bement? No hát akkor le ezt a kendőt…
Vagy ha azt mondja a feleséged, hogy hazamegy az anyjához: ne
mondd rá, hogy „ne menj öregem.“
Jóska: Hátha nincs is anyja?
Biró: Azér tud a’ hová menni. Mengyen szógállni a városba. Te
csak azt mondd rá, hogy: isten hírivel! hónap késő, ma kéne! Akkor
boldog ember leszel ezen a világon… De ha az asszony aszongya,
hogy: ez fekete! Osztán te azt feleled rá, hogy: bizon
k o r o m fekete! vagy ha aszongya, hogy fehér, osztán te aszondod,
hogy fejérebb a h ó n á l ! akkor fiam köthetsz követ a nyakadba,
mert meg is kell csinálnod, hogy az az asszonyistória fejérebb legyen
a hónál, pedig biz az mindig piszkos egy kicsit.
Jóska: Jaj ídes apám.
Biró: Mi a fiam?
Jóska: Haggyon békin. Gondolni se szeretek az ilyenekre, mióta
eltiltottak maguk a szeretőmtül.
Biró: Ó, de nagy szamár vagy fiam. Örüjj neki. Sose azt kell
elvenni, a kit szeret az ember, hanem a kit nem szeret. Mer annak
nem lehet parancsolni, a kit szeretünk, mer ha az azt mongya, hogy
itt hágy, megfájdul a szívünk. Hanem annak, a kit kergethetnénk,
még se megy. Az úgy kiszógájja az embert, fiam! De úgy, hogy még
a hejit is megtürüli az urának, csak tessék neki.
Jóska: Mit ír a, ha megfájdúl a karom, ha ölelni akarom.
Biró: A’ fiam, szamár beszíd. E mán igazán szamár egy beszíd.
Hát ugyan mikor öleled? Nappal? Mikor látják?
Jóska: Hát – ícczaka is.
Biró: Na hát, ícczaka mind egy kutya, ídes fiam.
Jóska (röhög): Kendnek mán mindegy ídes apám, de nékem!
Biró: Ne röhögj a szemembe, te marha. Ni hogy kípen felejtem
ezt az apagyilkost. Nem hallottad a parancsot, hogy fa legyík
hónapra. Hát hogy szaporábban menjen a munka, majd én is
segítek.
Jóska: Ne fáraggyík ídes apám.
Biró: Majd én avval segítek, hogy nem zavarlak a dologba.
Behúzódok egy kicsit aludni az ólba e! (Elmegy.)
Jóska: Vín kutya az öreg. Micsoda vín kutya!… (Fütyörészi a
biró-nótát.)
Manczi (jön): Pszt!
Jóska: Mi a?
Manczi: Nincs itt senki?
Jóska: Nincs. Ü is itt van?
Manczi: Nincs.
Jóska: Hát?
Manczi: Hát csak nincs.
Jóska: Mit mondott?
Manczi: Azt, hogy nem gyün.
Jóska: Nem gyün?
Manczi: Nem.
Jóska: Aszonta?
Manczi: Ühüm.
Jóska: Hogy nem gyün?
Manczi: Azt.
Jóska: Hm. Éha. E baj!
Manczi: Baj?
Jóska: Baj… Egyebet nem mondott?
Manczi: De.
Jóska: Mit?
Manczi: Azt, hogy mióta parancsolsz te neki?
Jóska: Ezt mondta?
Manczi: Ezt.
Jóska: Hm. Nagy baj… Egyebet nem mondott?
Manczi: De.
Jóska: Mit?
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade

Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.

Let us accompany you on the journey of exploring knowledge and


personal growth!

ebookultra.com

You might also like