Basic HTML version of Foils prepared 3 March 99

Foil 46 The eval Function

From Overview of JavaScript I -- Basic Web Scripting Language CPS616 Technologies of the Information Age -- Spring Semester 99. by Geoffrey C. Fox (Tom Scavo)

The eval() Function
1 The function eval( string ) invokes the JavaScript interpreter on its string argument, which is evaluated in the context of the current window (i.e., globally)
  • In NN3.0 only, we may also write: object.eval( string ) In this case, the string argument is evaluated in the context of some object
  • In NN4.0, the above is identical to: with (object) eval( string );

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Wed Mar 3 1999