please dont rip this site

JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

JSObject.eval() Java Method

Name

JSObject.eval() Java Method---evaluate a string of JavaScript code

Availability

Part of the netscape.javascript package included with Navigator 3.0

Synopsis

public Object eval(String s)

Arguments

s

A string that contains arbitrary JavaScript statements, separated by semicolons.

Returns

The JavaScript value of the last expression evaluated in s, converted to a Java object.

Description

The eval() method of the Java JSObject class evaluates the JavaScript code contained in the String s in the context of the JavaScript object specified by the JSObject. The eval() method of the Java JSObject class behaves just like the eval() method of the JavaScript Object "class."

The argument s may contain any number of JavaScript statements, separated by semicolons; these statements will be executed in the order in which they appear. The return value of eval() is the value of the last statement or expression evaluated in s.

See Also

"JSObject", Chapter 19, LiveConnect: JavaScript and Java


Previous Home Next
JSObject.call() Book Index JSObject.getMember()

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

file: /Techref/language/java/script/definitive/refp_186.htm, 5KB, , updated: 2019/10/14 15:00, local time: 2024/11/8 10:13,
TOP NEW HELP FIND: 
3.145.84.208:LOG IN
©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://linistepper.com/Techref/language/java/script/definitive/refp_186.htm"> [Chapter 21] Reference: JSObject.eval()</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?