Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I believe these are predefined Firebug console functions - at least that seems to be the case for Firebug. If you try calling <code>window.copy</code> for instance, you'll get a warning about function not defined, so it's definitely not a browser function, and cannot be used in normal JavaScript files. The following functions also seems to work in the JavaScript console, after playing around with it a bit: </p> <ul> <li><code>clear()</code> </li> <li><code>profile()</code></li> </ul> <hr> <p>Running these in the Chrome console reveals the source behind these functions in the Webkit console: </p> <pre><code>&gt; profile function () { return console.profile.apply(console, arguments) } &gt; clear function () { InjectedScriptHost.clearConsoleMessages(); } &gt; copy function (object) { if (injectedScript._type(object) === "node") object = object.outerHTML; InjectedScriptHost.copyText(object); } </code></pre> <p>While the <a href="http://code.google.com/p/fbug/source/browse/branches/firebug1.7/content/firebug/commandLine.js?r=8810#1169" rel="noreferrer">Firebug source</a> also defines a list of functions: </p> <pre><code>this.clear = function() // no web page interaction { Firebug.Console.clear(context); }; this.inspect = function(obj, panelName) // no web page interaction { Firebug.chrome.select(obj, panelName); }; this.keys = function(o) { return FBL.keys(o); // the object is from the page, unwrapped }; this.values = function(o) { return FBL.values(o); // the object is from the page, unwrapped }; // etc... </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload