c-- styles for logos and headline links do not modify internet, red, or black styles -->

Intranet Journal   Earthweb  
Events Jobs Premium Services Media Kit Network Map E-mail Offers Vendor Solutions Webcasts

   Intranet Journal Subjects
Search Earthweb

Privacy Policy



internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

internet commerce
Be a Commerce Partner
















 

[ Home | Discussion Forum | How Do I... | Lotus Notes Intranets | Microsoft SharePoint | Products | Shopping  ]

free news!

Dynamic Properties in Dynamic HTML (DHTML)



Tutorial TOC

  1. Introduction
  2. Implementing Dynamic Properties
  3. Creating expressions and formulas
  4. The setting expressions
  5. The getExpression() method
  6. The removeExpression() method
  7. Summary

The removeExpression() method

We mentioned earlier that expressions set with setExpression() and expression() can be can removed with removeExpression(). This is simply done by calling removeExpression() and passing it a string indicating the property which you. d like to make non-dynamic. For example for box1, we could do the following:

box1.style.removeExpression('top')

This will then attempt to remove the expression from the top property. If this operation is successful, the return value from this method will be true; otherwise, it will be false. As you see, this method. s usage is almost a no brainier in most cases, but sometimes removing expressions can become a multi-step process. An example of this is shown in the next example on the next page.

 
 

[print version of this page]

Of Interest
· An Introduction to DHTML

· Express Yourself