Control.removeFromDOM

Syntax

removeFromDOM ();

Description

The removeFromDOM method removes nod from the DOM structure.

Example

To execute the example, link the PP.js library and the PP.css visual styles table to HTML page.

Create the button with the drop-down menu (refer to the Example of Creating a Button with the Drop-down Menu) and next remove button menu from DOM structure using the removeFromDOM method:

menu.removeFromDOM();

After executing the example, drop-down menu of the button is removed from DOM.

See also:

Control