Copy
From FirebugWiki
(Difference between revisions)
Sebastianz (Talk | contribs) (Added parameter description and examples) |
Sebastianz (Talk | contribs) m (Add link to the $ command) |
||
| Line 21: | Line 21: | ||
</source> | </source> | ||
| - | This copies the HTML tree of the element with id <code>element</code> including the element tag itself to the clipboard. | + | This copies the HTML tree of the element with id <code>element</code> including the element tag itself to the clipboard using the [[$|$ command]]. |
== See also == | == See also == | ||
* [[Command Line API]] | * [[Command Line API]] | ||
Latest revision as of 11:34, 13 July 2012
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.