Copy

From FirebugWiki

Revision as of 00:04, 22 November 2013 by Sebastianz (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

Contents

[edit] Syntax

copy(object)

[edit] Parameters

[edit] object

Object to copy to the clipboard. (required)

[edit] 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 using the $ command.

[edit] See also

Personal tools