Copy

From FirebugWiki
Revision as of 03:33, 13 July 2012 by Sebastianz (Talk | contribs) (Added parameter description and examples)

Jump to: navigation, search

Copies the given object to the clipboard. This can be a return value of a function or a DOM property.

Syntax

copy(object)

Parameters

object

Object to copy to the clipboard. (required)

Examples

copy(obj.name)

This copies the value of the obj.name property to the clipboard.

copy($("element").outerHTML)

This copies the HTML tree of the element with id element including the element tag itself to the clipboard.

See also