Core JavaScript 1.5 Reference:Global Objects:Object:eval
From MDC
Deprecated
Contents |
[edit] Summary
Deprecated. Evaluates a string of JavaScript code in the context of an object.
| Method of Object | |
| Implemented in: | JavaScript 1.1, NES2.0
JavaScript 1.2, NES 3.0: Deprecated as a method of objects; retained as a top-level function. |
[edit] Syntax
object.eval(string)
[edit] Parameters
-
string - Any string representing a JavaScript expression, statement, or sequence of statements. The expression can include variables and properties of existing objects.
[edit] Description
The eval method should no longer be used as a method of Object. Use the top-level eval function instead.