The setExpression Method


The setExpression Method

In the Internet Explorer, you can assign scripting expressions to object properties using setExpression . You can see the support for this method in Table 6.51.

Table 6.51. The setExpression Method

Method

NS2

NS3

NS4

NS6

IE3a

IE3b

IE4

IE5

IE5.5

IE6

setExpression( property , expression , language )

             

x

x

x

 

No return value

Here, property is the property you're assigning an expression to, expression is the expression to assign, and language is the scripting language you're using. For example, here's how to assign the value in a text field to the width style property of another text field:

 text2.style.setExpression("width", "eval(text1.value)", "JavaScript") 


Inside Javascript
Inside JavaScript
ISBN: 0735712859
EAN: 2147483647
Year: 2005
Pages: 492
Authors: Steve Holzner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net