Показать сообщение отдельно
Старый 04.01.2004, 21:59     # 2
Saruman
::VIP::
 
Аватар для Saruman
 
Регистрация: 12.11.2002
Адрес: Nicosia, Cyprus
Сообщения: 1 285

Saruman ГуруSaruman ГуруSaruman ГуруSaruman ГуруSaruman ГуруSaruman ГуруSaruman ГуруSaruman ГуруSaruman ГуруSaruman ГуруSaruman ГуруSaruman ГуруSaruman ГуруSaruman Гуру
Bespalov Roman
MSDN
Цитата:
cloneNode Method

--------------------------------------------------------------------------------

Copies a reference to the object from the document hierarchy.

What's New for Microsoft® Internet Explorer 6
This method applies to the attribute object as of Internet Explorer 6.

Syntax

oClone = object.cloneNode( [bCloneChildren])
Parameters

bCloneChildren Optional. Boolean that specifies one of the following values: false Default. Cloned objects do not include childNodes.
true Cloned objects include childNodes.


Return Value

Returns a reference to the newly created node.

Remarks

The cloneNode method copies an object, attributes, and, if specified, the childNodes.

A collection is returned when referring to the ID of a cloned element.

The cloneNode method will not work on an IFRAME directly. You must call it through the all collection. The following example demonstrates how to call cloneNode on an IFRAME.
__________________
"If people only knew how hard I work to gain my mastery, it wouldn't seem so wonderful at all." Michelangelo Buonarroti
Saruman вне форума