Javascript [Electronic resources] : The Definitive Guide (4th Edition) نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Javascript [Electronic resources] : The Definitive Guide (4th Edition) - نسخه متنی

David Flanagan

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید

Availability



Netscape 3, Internet Explorer 4


Synopsis

public final class netscape.javascript.JSObject extends Object

Methods


call( )

Invokes a method of the JavaScript object.

eval( )

Evaluates a string of JavaScript code in the context of the
JavaScript object.

getMember( )

Gets the value of a property of the JavaScript object.

getSlot( )

Gets the value of an array element of the JavaScript object.

getWindow( )

Gets a "root" JSObject that represents the JavaScript
Window object of the web browser.

removeMember( )

Deletes a property from the JavaScript object.

setMember( )

Sets the value of a property of the JavaScript object.

setSlot( )

Sets the value of an array element of the JavaScript object.

toString( )

Invokes the JavaScript toString( ) method of the
JavaScript object and returns its result.


Description


The JSObject is a Java class, not a
JavaScript object; it cannot be used in your JavaScript programs.
Instead, the JSObject is used by Java applets that wish to
communicate with JavaScript by reading and writing JavaScript
properties and array elements, invoking JavaScript methods, and
evaluating and executing arbitrary strings of JavaScript code.
Obviously, since JSObject is a Java class, you must understand Java
programming in order to use it.

Full details on programming with the JSObject can be found in Chapter 22.


See Also


Chapter 22

/ 844