321Chapter 15Generic HTML (Cool web site) Element Objects getExpression(), setExpression(), recalc()

321Chapter 15Generic HTML Element Objects

getExpression(), setExpression(), recalc() Methods


This clock uses Dynamic Properties to calculate bar width and timenumbers:

Hours:  
Minutes:  
Seconds:  


Related Items:document.recalc(), removeExpression(), setExpression()methods. swapNode(otherNodeObject) Returns:Nodeobject reference. Compatibility:WinIE5+, MacIE-, NN-, Moz-, Safari- The swapNode()method exchanges the positions of two nodes within an element hierarchy. Contents of both nodes are preserved in their entirety during the exchange. The singleparameter must be a valid node object (perhaps created with document.createElement() or copied from an existing node). A return value is a reference to the object whoseswapNode()method was invoked. ExampleSee Listing 15-31 (the replaceNode()method) for an example of the swapNode()method inaction. Related Items:removeChild(), removeNode(), replaceChild(), replaceNode()methods. tags( tagName ) Returns: Array of element objects. Compatibility:WinIE4+, MacIE4+, NN-, Moz-, Safari- elementObjectCollection.tags()

Leave a Reply