Basic HTML version of Foils prepared 16 June 98

Foil 38 The eval Function

From Overview of Advanced JavaScript -- Web Scripting Language CPS616 Technologies of the Information Age -- Spring Semester 98. by Tom Scavo,Geoffrey C. Fox

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 Sun Nov 29 1998