JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

eval() Function

Name

eval() Function---execute JavaScript code from a string

Availability

Navigator 2.0, Internet Explorer 3.0; changed in Navigator 3.0

Synopsis

eval(code)

Arguments

code

A string that contains the JavaScript expression to be evaluated or the statements to be executed.

Returns

The value of the evaluated code, if any.

Description

The eval() function of Navigator 2.0 has been changed to a method of Object in Navigator 3.0. See "Object.eval()" for complete details.

See Also

"Object.eval()"


Previous Home Next
escape() Book Index FileUpload

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell