Home | Javascript validator | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |
Microsoft® JScript® eval Method |
Language Reference Version 1 |
Evaluates JavaScript code and executes it.
eval(codestring)The codestring argument is a String object that contains valid JavaScript code. This string is parsed by the JavaScript parser and executed.
The eval function allows dynamic execution of JavaScript source code. For example, the following code creates a new variable mydate that contains a Date object:The code passed to the eval method is executed in the same context as the call to the eval method.eval("var mydate = new Date();");
Home | Javascript validator | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |