| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc.
Note: | |
| 2 1) The <head> information in this page is significant, should be uniform | |
| 3 across api docs and should be edited only with knowledge of the | |
| 4 templating mechanism. | |
| 5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a | |
| 6 browser, it will be re-generated from the template, json schema and | |
| 7 authored overview content. | |
| 8 4) The <body>.innerHTML is also generated by an offline step so that this | |
| 9 page may easily be indexed by search engines. | |
| 10 --><html xmlns="http://www.w3.org/1999/xhtml"><head> | |
| 11 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
| 12 <link href="css/ApiRefStyles.css" rel="stylesheet" type="text/css"> | |
| 13 <link href="css/print.css" rel="stylesheet" type="text/css" media="print"> | |
| 14 <script type="text/javascript" src="../../../third_party/jstemplate/jstempla
te_compiled.js"> | |
| 15 </script> | |
| 16 <script type="text/javascript" src="../../../../third_party/json_minify/mini
fy-sans-regexp.js"> | |
| 17 </script> | |
| 18 <script type="text/javascript" src="js/api_page_generator.js"></script> | |
| 19 <script type="text/javascript" src="js/bootstrap.js"></script> | |
| 20 <script type="text/javascript" src="js/sidebar.js"></script> | |
| 21 <meta name="description" content="Documentation for the chrome.experimental.de
vtools.console module, which is part of the Google Chrome extension APIs."><tit
le>chrome.experimental.devtools.console | |
| 22 API - Google Chrome Extensions - Google Code</title></head> | |
| 23 <body> <div id="devModeWarning" class="displayModeWarning"> | |
| 24 You are viewing extension docs in chrome via the 'file:' scheme: are you exp
ecting to see local changes when you refresh? You'll need run chrome with --allo
w-file-access-from-files. | |
| 25 </div> | |
| 26 <div id="branchWarning" class="displayModeWarning"> | |
| 27 <span>WARNING: This is the <span id="branchName">BETA</span> documentation. | |
| 28 It may not work with the stable release of Chrome.</span> | |
| 29 <select id="branchChooser"> | |
| 30 <option>Choose a different version... | |
| 31 </option><option value="">Stable | |
| 32 </option><option value="beta">Beta | |
| 33 </option><option value="dev">Dev | |
| 34 </option><option value="trunk">Trunk | |
| 35 </option></select> | |
| 36 </div> | |
| 37 <div id="unofficialWarning" class="displayModeWarning"> | |
| 38 <span>WARNING: This is unofficial documentation. It may not work with the | |
| 39 current release of Chrome.</span> | |
| 40 <button id="goToOfficialDocs">Go to the official docs</button> | |
| 41 </div> | |
| 42 <div id="gc-container" class="labs"> | |
| 43 <!-- SUBTEMPLATES: DO NOT MOVE FROM THIS LOCATION --> | |
| 44 <!-- In particular, sub-templates that recurse, must be used by allowing | |
| 45 jstemplate to make a copy of the template in this section which | |
| 46 are not operated on by way of the jsskip="true" --> | |
| 47 <!-- /SUBTEMPLATES --> | |
| 48 <a id="top"></a> | |
| 49 <div id="skipto"> | |
| 50 <a href="#gc-pagecontent">Skip to page content</a> | |
| 51 <a href="#gc-toc">Skip to main navigation</a> | |
| 52 </div> | |
| 53 <!-- API HEADER --> | |
| 54 <table id="header" width="100%" cellspacing="0" border="0"> | |
| 55 <tbody><tr> | |
| 56 <td valign="middle"><a href="http://code.google.com/"><img src="images/c
ode_labs_logo.gif" height="43" width="161" alt="Google Code Labs" style="border:
0; margin:0;"></a></td> | |
| 57 <td valign="middle" width="100%" style="padding-left:0.6em;"> | |
| 58 <form action="http://www.google.com/cse" id="cse" style="margin-top:0.
5em"> | |
| 59 <div id="gsc-search-box"> | |
| 60 <input type="hidden" name="cx" value="002967670403910741006:61_cvz
fqtno"> | |
| 61 <input type="hidden" name="ie" value="UTF-8"> | |
| 62 <input type="text" name="q" value="" size="55"> | |
| 63 <input class="gsc-search-button" type="submit" name="sa" value="Se
arch"> | |
| 64 <br> | |
| 65 <span class="greytext">e.g. "page action" or "tabs"</span> | |
| 66 </div> | |
| 67 </form> | |
| 68 <script type="text/javascript" src="https://www.google.com/jsapi"></sc
ript> | |
| 69 <script type="text/javascript">google.load("elements", "1", {packages:
"transliteration"});</script> | |
| 70 <script type="text/javascript" src="https://www.google.com/coop/cse/t1
3n?form=cse&t13n_langs=en"></script> | |
| 71 <script type="text/javascript" src="https://www.google.com/coop/cse/br
and?form=cse&lang=en"></script> | |
| 72 </td> | |
| 73 </tr> | |
| 74 </tbody></table> | |
| 75 <div id="codesiteContent" class=""> | |
| 76 <a id="gc-topnav-anchor"></a> | |
| 77 <div id="gc-topnav"> | |
| 78 <h1>Google Chrome Extensions (<a href="http://code.google.com/labs/">Lab
s</a>)</h1> | |
| 79 <ul id="home" class="gc-topnav-tabs"> | |
| 80 <li id="home_link"> | |
| 81 <a href="index.html" title="Google Chrome Extensions home page">Home
</a> | |
| 82 </li> | |
| 83 <li id="docs_link"> | |
| 84 <a href="docs.html" title="Official Google Chrome Extensions documen
tation">Docs</a> | |
| 85 </li> | |
| 86 <li id="faq_link"> | |
| 87 <a href="faq.html" title="Answers to frequently asked questions abou
t Google Chrome Extensions">FAQ</a> | |
| 88 </li> | |
| 89 <li id="samples_link"> | |
| 90 <a href="samples.html" title="Sample extensions (with source code)">
Samples</a> | |
| 91 </li> | |
| 92 <li id="group_link"> | |
| 93 <a href="http://groups.google.com/a/chromium.org/group/chromium-exte
nsions" title="Google Chrome Extensions developer forum">Group</a> | |
| 94 </li> | |
| 95 <li id="so_link"> | |
| 96 <a href="http://stackoverflow.com/questions/tagged/google-chrome-ext
ension" title="[google-chrome-extension] tag on Stack Overflow">Questions?</a> | |
| 97 </li> | |
| 98 </ul> | |
| 99 </div> <!-- end gc-topnav --> | |
| 100 <div class="g-section g-tpl-170"> | |
| 101 <!-- SIDENAV --> | |
| 102 <div class="g-unit g-first" id="gc-toc"> | |
| 103 <ul> | |
| 104 <li><a href="getstarted.html">Getting Started</a></li> | |
| 105 <li><a href="overview.html">Overview</a></li> | |
| 106 <li><a href="whats_new.html">What's New?</a></li> | |
| 107 <li><h2><a href="devguide.html">Developer's Guide</a></h2> | |
| 108 <ul> | |
| 109 <li>Browser UI | |
| 110 <ul> | |
| 111 <li><a href="browserAction.html">Browser Actions</a></li> | |
| 112 <li><a href="contextMenus.html">Context Menus</a></li> | |
| 113 <li><a href="notifications.html">Desktop Notifications</a></li
> | |
| 114 <li><a href="omnibox.html">Omnibox</a></li> | |
| 115 <li><a href="options.html">Options Pages</a></li> | |
| 116 <li><a href="override.html">Override Pages</a></li> | |
| 117 <li><a href="pageAction.html">Page Actions</a></li> | |
| 118 </ul> | |
| 119 </li> | |
| 120 <li>Browser Interaction | |
| 121 <ul> | |
| 122 <li><a href="bookmarks.html">Bookmarks</a></li> | |
| 123 <li><a href="cookies.html">Cookies</a></li> | |
| 124 <li><a href="devtools.html">Developer Tools</a></li> | |
| 125 <li><a href="events.html">Events</a></li> | |
| 126 <li><a href="history.html">History</a></li> | |
| 127 <li><a href="management.html">Management</a></li> | |
| 128 <li><a href="tabs.html">Tabs</a></li> | |
| 129 <li><a href="windows.html">Windows</a></li> | |
| 130 </ul> | |
| 131 </li> | |
| 132 <li>Implementation | |
| 133 <ul> | |
| 134 <li><a href="a11y.html">Accessibility</a></li> | |
| 135 <li><a href="background_pages.html">Background Pages</a></li> | |
| 136 <li><a href="content_scripts.html">Content Scripts</a></li> | |
| 137 <li><a href="xhr.html">Cross-Origin XHR</a></li> | |
| 138 <li><a href="i18n.html">Internationalization</a></li> | |
| 139 <li><a href="messaging.html">Message Passing</a></li> | |
| 140 <li><a href="permissions.html">Optional Permissions</a></li> | |
| 141 <li><a href="npapi.html">NPAPI Plugins</a></li> | |
| 142 </ul> | |
| 143 </li> | |
| 144 <li>Finishing | |
| 145 <ul> | |
| 146 <li><a href="hosting.html">Hosting</a></li> | |
| 147 <li><a href="external_extensions.html">Other Deployment Option
s</a></li> | |
| 148 </ul> | |
| 149 </li> | |
| 150 </ul> | |
| 151 </li> | |
| 152 <li><h2><a href="apps.html">Packaged Apps</a></h2></li> | |
| 153 <li><h2><a href="tutorials.html">Tutorials</a></h2> | |
| 154 <ul> | |
| 155 <li><a href="tut_debugging.html">Debugging</a></li> | |
| 156 <li><a href="tut_analytics.html">Google Analytics</a></li> | |
| 157 <li><a href="tut_oauth.html">OAuth</a></li> | |
| 158 </ul> | |
| 159 </li> | |
| 160 <li><h2>Reference</h2> | |
| 161 <ul> | |
| 162 <li>Formats | |
| 163 <ul> | |
| 164 <li><a href="manifest.html">Manifest Files</a></li> | |
| 165 <li><a href="match_patterns.html">Match Patterns</a></li> | |
| 166 </ul> | |
| 167 </li> | |
| 168 <li><a href="permission_warnings.html">Permission Warnings</a></li
> | |
| 169 <li><a href="api_index.html">chrome.* APIs</a></li> | |
| 170 <li><a href="api_other.html">Other APIs</a></li> | |
| 171 </ul> | |
| 172 </li> | |
| 173 <li><h2><a href="samples.html">Samples</a></h2></li> | |
| 174 <div class="line"> </div> | |
| 175 <li><h2>More</h2> | |
| 176 <ul> | |
| 177 <li><a href="http://code.google.com/chrome/webstore/docs/index.htm
l">Chrome Web Store</a></li> | |
| 178 <li><a href="http://code.google.com/chrome/apps/docs/developers_gu
ide.html">Hosted Apps</a></li> | |
| 179 <li><a href="themes.html">Themes</a></li> | |
| 180 </ul> | |
| 181 </li> | |
| 182 </ul> | |
| 183 </div> | |
| 184 <script> | |
| 185 initToggles(); | |
| 186 </script> | |
| 187 <div class="g-unit" id="gc-pagecontent"> | |
| 188 <div id="pageTitle"> | |
| 189 <h1 class="page_title">chrome.experimental.devtools.console | |
| 190 API</h1> | |
| 191 </div> | |
| 192 <!-- TABLE OF CONTENTS --> | |
| 193 <div id="toc"> | |
| 194 <h2>Contents</h2> | |
| 195 <ol> | |
| 196 <li> | |
| 197 <a href="#apiReference">API reference: chrome.experimental.devto
ols.console</a> | |
| 198 <ol> | |
| 199 <li> | |
| 200 <a href="#global-methods">Methods</a> | |
| 201 <ol> | |
| 202 <li> | |
| 203 <a href="#method-addMessage">addMessage</a> | |
| 204 </li><li> | |
| 205 <a href="#method-getMessages">getMessages</a> | |
| 206 </li> | |
| 207 </ol> | |
| 208 </li> | |
| 209 <li> | |
| 210 <a href="#global-events">Events</a> | |
| 211 <ol> | |
| 212 <li> | |
| 213 <a href="#event-onMessageAdded">onMessageAdded</a> | |
| 214 </li> | |
| 215 </ol> | |
| 216 </li> | |
| 217 <li> | |
| 218 <a href="#types">Types</a> | |
| 219 <ol> | |
| 220 <li> | |
| 221 <a href="#type-ConsoleMessage">ConsoleMessage</a> | |
| 222 <ol> | |
| 223 </ol> | |
| 224 </li><li> | |
| 225 <a href="#type-Severity">Severity</a> | |
| 226 <ol> | |
| 227 </ol> | |
| 228 </li> | |
| 229 </ol> | |
| 230 </li> | |
| 231 </ol> | |
| 232 </li> | |
| 233 </ol> | |
| 234 </div> | |
| 235 <!-- /TABLE OF CONTENTS --> | |
| 236 <!-- Standard content lead-in for experimental API pages --> | |
| 237 <p id="classSummary"> | |
| 238 For information on how to use experimental APIs, see the <a href="expe
rimental.html">chrome.experimental.* APIs</a> page. | |
| 239 </p> | |
| 240 <!-- STATIC CONTENT PLACEHOLDER --> | |
| 241 <div id="static"><!-- BEGIN AUTHORED CONTENT --> | |
| 242 <div id="pageData-name" class="pageData">chrome.experimental.devtools.console | |
| 243 API</div> | |
| 244 <p> | |
| 245 Use <code>chrome.experimental.devtools.console</code> to retrieve messages from | |
| 246 the inspected page console and post messages there. <code>getMessages()</code> | |
| 247 returns the list of messages on the console, <code>onMessageAdded</code> | |
| 248 event provides notifications on new messages, and <code>addMessage()</code> | |
| 249 allows an extension to add new messages. | |
| 250 </p> | |
| 251 <!-- END AUTHORED CONTENT --> | |
| 252 </div> | |
| 253 <!-- API PAGE --> | |
| 254 <div class="apiPage"> | |
| 255 <a name="apiReference"></a> | |
| 256 <h2>API reference: chrome.experimental.devtools.console</h2> | |
| 257 <!-- PROPERTIES --> | |
| 258 <!-- /apiGroup --> | |
| 259 <!-- METHODS --> | |
| 260 <div id="methodsTemplate" class="apiGroup"> | |
| 261 <a name="global-methods"></a> | |
| 262 <h3>Methods</h3> | |
| 263 <!-- iterates over all functions --> | |
| 264 <div class="apiItem"> | |
| 265 <a name="method-addMessage"></a> <!-- method-anchor --> | |
| 266 <h4>addMessage</h4> | |
| 267 <div class="summary"> | |
| 268 <!-- Note: intentionally longer 80 columns --> | |
| 269 <span>chrome.experimental.devtools.console.addMessage</span>(<
span class="null"><span>Severity</span> | |
| 270 <var><span>severity</span></var></span><span class="null">
<span>, </span><span>string</span> | |
| 271 <var><span>text</span></var></span>)</div> | |
| 272 <div class="description"> | |
| 273 <p>Adds a message to the console.</p> | |
| 274 <!-- PARAMETERS --> | |
| 275 <h4>Parameters</h4> | |
| 276 <dl> | |
| 277 <div> | |
| 278 <div> | |
| 279 <dt> | |
| 280 <var>severity</var> | |
| 281 <em> | |
| 282 <!-- TYPE --> | |
| 283 <div style="display:inline"> | |
| 284 ( | |
| 285 <span id="typeTemplate"> | |
| 286 <span> | |
| 287 <a href="experimental.devtools.console.html#type-Severit
y">Severity</a> | |
| 288 </span> | |
| 289 </span> | |
| 290 ) | |
| 291 </div> | |
| 292 </em> | |
| 293 </dt> | |
| 294 <dd>The severity of the message.</dd> | |
| 295 <!-- OBJECT PROPERTIES --> | |
| 296 <!-- OBJECT METHODS --> | |
| 297 <!-- OBJECT EVENT FIELDS --> | |
| 298 <!-- FUNCTION PARAMETERS --> | |
| 299 </div> | |
| 300 </div><div> | |
| 301 <div> | |
| 302 <dt> | |
| 303 <var>text</var> | |
| 304 <em> | |
| 305 <!-- TYPE --> | |
| 306 <div style="display:inline"> | |
| 307 ( | |
| 308 <span id="typeTemplate"> | |
| 309 <span> | |
| 310 <span>string</span> | |
| 311 </span> | |
| 312 </span> | |
| 313 ) | |
| 314 </div> | |
| 315 </em> | |
| 316 </dt> | |
| 317 <dd>The text of the message.</dd> | |
| 318 <!-- OBJECT PROPERTIES --> | |
| 319 <!-- OBJECT METHODS --> | |
| 320 <!-- OBJECT EVENT FIELDS --> | |
| 321 <!-- FUNCTION PARAMETERS --> | |
| 322 </div> | |
| 323 </div> | |
| 324 </dl> | |
| 325 <!-- RETURNS --> | |
| 326 <dl> | |
| 327 </dl> | |
| 328 <!-- CALLBACK --> | |
| 329 <!-- MIN_VERSION --> | |
| 330 </div> <!-- /description --> | |
| 331 </div><div class="apiItem"> | |
| 332 <a name="method-getMessages"></a> <!-- method-anchor --> | |
| 333 <h4>getMessages</h4> | |
| 334 <div class="summary"> | |
| 335 <!-- Note: intentionally longer 80 columns --> | |
| 336 <span>chrome.experimental.devtools.console.getMessages</span>(
<span class="null"><span>function</span> | |
| 337 <var><span>callback</span></var></span>)</div> | |
| 338 <div class="description"> | |
| 339 <p>Retrieves console messages.</p> | |
| 340 <!-- PARAMETERS --> | |
| 341 <h4>Parameters</h4> | |
| 342 <dl> | |
| 343 <div> | |
| 344 <div> | |
| 345 <dt> | |
| 346 <var>callback</var> | |
| 347 <em> | |
| 348 <!-- TYPE --> | |
| 349 <div style="display:inline"> | |
| 350 ( | |
| 351 <span id="typeTemplate"> | |
| 352 <span> | |
| 353 <span>function</span> | |
| 354 </span> | |
| 355 </span> | |
| 356 ) | |
| 357 </div> | |
| 358 </em> | |
| 359 </dt> | |
| 360 <dd>A function that receives console messages when the request complet
es.</dd> | |
| 361 <!-- OBJECT PROPERTIES --> | |
| 362 <!-- OBJECT METHODS --> | |
| 363 <!-- OBJECT EVENT FIELDS --> | |
| 364 <!-- FUNCTION PARAMETERS --> | |
| 365 </div> | |
| 366 </div> | |
| 367 </dl> | |
| 368 <!-- RETURNS --> | |
| 369 <dl> | |
| 370 </dl> | |
| 371 <!-- CALLBACK --> | |
| 372 <div> | |
| 373 <div> | |
| 374 <h4>Callback function</h4> | |
| 375 <p> | |
| 376 The <em>callback</em> parameter should specify a function | |
| 377 that looks like this: | |
| 378 </p> | |
| 379 <!-- Note: intentionally longer 80 columns --> | |
| 380 <pre>function(<span>array of ConsoleMessage messages</span>) <
span class="subdued">{...}</span>;</pre> | |
| 381 <dl> | |
| 382 <div> | |
| 383 <div> | |
| 384 <dt> | |
| 385 <var>messages</var> | |
| 386 <em> | |
| 387 <!-- TYPE --> | |
| 388 <div style="display:inline"> | |
| 389 ( | |
| 390 <span id="typeTemplate"> | |
| 391 <span> | |
| 392 <span> | |
| 393 array of <span><span> | |
| 394 <span> | |
| 395 <a href="experimental.devtools.console.html#type-Console
Message">ConsoleMessage</a> | |
| 396 </span> | |
| 397 </span></span> | |
| 398 </span> | |
| 399 </span> | |
| 400 </span> | |
| 401 ) | |
| 402 </div> | |
| 403 </em> | |
| 404 </dt> | |
| 405 <dd>Console messages.</dd> | |
| 406 <!-- OBJECT PROPERTIES --> | |
| 407 <!-- OBJECT METHODS --> | |
| 408 <!-- OBJECT EVENT FIELDS --> | |
| 409 <!-- FUNCTION PARAMETERS --> | |
| 410 </div> | |
| 411 </div> | |
| 412 </dl> | |
| 413 </div> | |
| 414 </div> | |
| 415 <!-- MIN_VERSION --> | |
| 416 </div> <!-- /description --> | |
| 417 </div> <!-- /apiItem --> | |
| 418 </div> <!-- /apiGroup --> | |
| 419 <!-- EVENTS --> | |
| 420 <div id="eventsTemplate" class="apiGroup"> | |
| 421 <a name="global-events"></a> | |
| 422 <h3>Events</h3> | |
| 423 <!-- iterates over all events --> | |
| 424 <div class="apiItem"> | |
| 425 <a name="event-onMessageAdded"></a> | |
| 426 <h4>onMessageAdded</h4> | |
| 427 <div class="summary"> | |
| 428 <!-- Note: intentionally longer 80 columns --> | |
| 429 <span class="subdued">chrome.experimental.devtools.console.</spa
n><span>onMessageAdded</span><span class="subdued">.addListener</span>(function(
<span>ConsoleMessage message</span>) <span class="subdued">{...}</span><span></s
pan>); | |
| 430 </div> | |
| 431 <div class="description"> | |
| 432 <p>Fired when a new message is added to the console.</p> | |
| 433 <!-- LISTENER PARAMETERS --> | |
| 434 <div> | |
| 435 <h4>Listener parameters</h4> | |
| 436 <dl> | |
| 437 <div> | |
| 438 <div> | |
| 439 <dt> | |
| 440 <var>message</var> | |
| 441 <em> | |
| 442 <!-- TYPE --> | |
| 443 <div style="display:inline"> | |
| 444 ( | |
| 445 <span id="typeTemplate"> | |
| 446 <span> | |
| 447 <a href="experimental.devtools.console.html#type-Console
Message">ConsoleMessage</a> | |
| 448 </span> | |
| 449 </span> | |
| 450 ) | |
| 451 </div> | |
| 452 </em> | |
| 453 </dt> | |
| 454 <dd class="todo"> | |
| 455 Undocumented. | |
| 456 </dd> | |
| 457 <!-- OBJECT PROPERTIES --> | |
| 458 <!-- OBJECT METHODS --> | |
| 459 <!-- OBJECT EVENT FIELDS --> | |
| 460 <!-- FUNCTION PARAMETERS --> | |
| 461 </div> | |
| 462 </div> | |
| 463 </dl> | |
| 464 </div> | |
| 465 <!-- EXTRA PARAMETERS --> | |
| 466 <!-- LISTENER RETURN VALUE --> | |
| 467 <dl> | |
| 468 </dl> | |
| 469 </div> <!-- /description --> | |
| 470 <!-- /description --> | |
| 471 </div> <!-- /apiItem --> | |
| 472 </div> <!-- /apiGroup --> | |
| 473 <!-- TYPES --> | |
| 474 <div class="apiGroup"> | |
| 475 <a name="types"></a> | |
| 476 <h3 id="types">Types</h3> | |
| 477 <!-- iterates over all types --> | |
| 478 <div class="apiItem"> | |
| 479 <a name="type-ConsoleMessage"></a> | |
| 480 <h4>ConsoleMessage</h4> | |
| 481 <div> | |
| 482 <dt> | |
| 483 <em> | |
| 484 <!-- TYPE --> | |
| 485 <div style="display:inline"> | |
| 486 ( | |
| 487 <span id="typeTemplate"> | |
| 488 <span> | |
| 489 <span>object</span> | |
| 490 </span> | |
| 491 </span> | |
| 492 ) | |
| 493 </div> | |
| 494 </em> | |
| 495 </dt> | |
| 496 <dd>A console message.</dd> | |
| 497 <!-- OBJECT PROPERTIES --> | |
| 498 <dd> | |
| 499 <dl> | |
| 500 <div> | |
| 501 <div> | |
| 502 <dt> | |
| 503 <var>severity</var> | |
| 504 <em> | |
| 505 <!-- TYPE --> | |
| 506 <div style="display:inline"> | |
| 507 ( | |
| 508 <span id="typeTemplate"> | |
| 509 <span> | |
| 510 <a href="experimental.devtools.console.html#type-Severit
y">Severity</a> | |
| 511 </span> | |
| 512 </span> | |
| 513 ) | |
| 514 </div> | |
| 515 </em> | |
| 516 </dt> | |
| 517 <dd>Message severity.</dd> | |
| 518 <!-- OBJECT PROPERTIES --> | |
| 519 <!-- OBJECT METHODS --> | |
| 520 <!-- OBJECT EVENT FIELDS --> | |
| 521 <!-- FUNCTION PARAMETERS --> | |
| 522 </div> | |
| 523 </div><div> | |
| 524 <div> | |
| 525 <dt> | |
| 526 <var>text</var> | |
| 527 <em> | |
| 528 <!-- TYPE --> | |
| 529 <div style="display:inline"> | |
| 530 ( | |
| 531 <span id="typeTemplate"> | |
| 532 <span> | |
| 533 <span>string</span> | |
| 534 </span> | |
| 535 </span> | |
| 536 ) | |
| 537 </div> | |
| 538 </em> | |
| 539 </dt> | |
| 540 <dd>The text of the console message, as represented by the first argum
ent to the console.log() or a similar method (no parameter substitution perform
ed).</dd> | |
| 541 <!-- OBJECT PROPERTIES --> | |
| 542 <!-- OBJECT METHODS --> | |
| 543 <!-- OBJECT EVENT FIELDS --> | |
| 544 <!-- FUNCTION PARAMETERS --> | |
| 545 </div> | |
| 546 </div><div> | |
| 547 <div> | |
| 548 <dt> | |
| 549 <var>url</var> | |
| 550 <em> | |
| 551 <!-- TYPE --> | |
| 552 <div style="display:inline"> | |
| 553 ( | |
| 554 <span class="optional">optional</span> | |
| 555 <span id="typeTemplate"> | |
| 556 <span> | |
| 557 <span>string</span> | |
| 558 </span> | |
| 559 </span> | |
| 560 ) | |
| 561 </div> | |
| 562 </em> | |
| 563 </dt> | |
| 564 <dd>The URL of the script that originated the message, if available.</
dd> | |
| 565 <!-- OBJECT PROPERTIES --> | |
| 566 <!-- OBJECT METHODS --> | |
| 567 <!-- OBJECT EVENT FIELDS --> | |
| 568 <!-- FUNCTION PARAMETERS --> | |
| 569 </div> | |
| 570 </div><div> | |
| 571 <div> | |
| 572 <dt> | |
| 573 <var>line</var> | |
| 574 <em> | |
| 575 <!-- TYPE --> | |
| 576 <div style="display:inline"> | |
| 577 ( | |
| 578 <span class="optional">optional</span> | |
| 579 <span id="typeTemplate"> | |
| 580 <span> | |
| 581 <span>number</span> | |
| 582 </span> | |
| 583 </span> | |
| 584 ) | |
| 585 </div> | |
| 586 </em> | |
| 587 </dt> | |
| 588 <dd>The number of the line where the message originated, if available.
</dd> | |
| 589 <!-- OBJECT PROPERTIES --> | |
| 590 <!-- OBJECT METHODS --> | |
| 591 <!-- OBJECT EVENT FIELDS --> | |
| 592 <!-- FUNCTION PARAMETERS --> | |
| 593 </div> | |
| 594 </div> | |
| 595 </dl> | |
| 596 </dd> | |
| 597 <!-- OBJECT METHODS --> | |
| 598 <!-- OBJECT EVENT FIELDS --> | |
| 599 <!-- FUNCTION PARAMETERS --> | |
| 600 </div> | |
| 601 </div><div class="apiItem"> | |
| 602 <a name="type-Severity"></a> | |
| 603 <h4>Severity</h4> | |
| 604 <div> | |
| 605 <dt> | |
| 606 <em> | |
| 607 <!-- TYPE --> | |
| 608 <div style="display:inline"> | |
| 609 ( | |
| 610 <span id="typeTemplate"> | |
| 611 <span> | |
| 612 <span>object</span> | |
| 613 </span> | |
| 614 </span> | |
| 615 ) | |
| 616 </div> | |
| 617 </em> | |
| 618 </dt> | |
| 619 <dd class="todo"> | |
| 620 Undocumented. | |
| 621 </dd> | |
| 622 <!-- OBJECT PROPERTIES --> | |
| 623 <dd> | |
| 624 <dl> | |
| 625 <div> | |
| 626 <div> | |
| 627 <dt> | |
| 628 <var>Tip</var> | |
| 629 <em> | |
| 630 <!-- TYPE --> | |
| 631 <div style="display:inline"> | |
| 632 ( | |
| 633 <span id="typeTemplate"> | |
| 634 <span> | |
| 635 <span>string</span> | |
| 636 </span> | |
| 637 </span> | |
| 638 ) | |
| 639 </div> | |
| 640 </em> | |
| 641 </dt> | |
| 642 <dd class="todo"> | |
| 643 Undocumented. | |
| 644 </dd> | |
| 645 <!-- OBJECT PROPERTIES --> | |
| 646 <!-- OBJECT METHODS --> | |
| 647 <!-- OBJECT EVENT FIELDS --> | |
| 648 <!-- FUNCTION PARAMETERS --> | |
| 649 </div> | |
| 650 </div><div> | |
| 651 <div> | |
| 652 <dt> | |
| 653 <var>Debug</var> | |
| 654 <em> | |
| 655 <!-- TYPE --> | |
| 656 <div style="display:inline"> | |
| 657 ( | |
| 658 <span id="typeTemplate"> | |
| 659 <span> | |
| 660 <span>string</span> | |
| 661 </span> | |
| 662 </span> | |
| 663 ) | |
| 664 </div> | |
| 665 </em> | |
| 666 </dt> | |
| 667 <dd class="todo"> | |
| 668 Undocumented. | |
| 669 </dd> | |
| 670 <!-- OBJECT PROPERTIES --> | |
| 671 <!-- OBJECT METHODS --> | |
| 672 <!-- OBJECT EVENT FIELDS --> | |
| 673 <!-- FUNCTION PARAMETERS --> | |
| 674 </div> | |
| 675 </div><div> | |
| 676 <div> | |
| 677 <dt> | |
| 678 <var>Log</var> | |
| 679 <em> | |
| 680 <!-- TYPE --> | |
| 681 <div style="display:inline"> | |
| 682 ( | |
| 683 <span id="typeTemplate"> | |
| 684 <span> | |
| 685 <span>string</span> | |
| 686 </span> | |
| 687 </span> | |
| 688 ) | |
| 689 </div> | |
| 690 </em> | |
| 691 </dt> | |
| 692 <dd class="todo"> | |
| 693 Undocumented. | |
| 694 </dd> | |
| 695 <!-- OBJECT PROPERTIES --> | |
| 696 <!-- OBJECT METHODS --> | |
| 697 <!-- OBJECT EVENT FIELDS --> | |
| 698 <!-- FUNCTION PARAMETERS --> | |
| 699 </div> | |
| 700 </div><div> | |
| 701 <div> | |
| 702 <dt> | |
| 703 <var>Warning</var> | |
| 704 <em> | |
| 705 <!-- TYPE --> | |
| 706 <div style="display:inline"> | |
| 707 ( | |
| 708 <span id="typeTemplate"> | |
| 709 <span> | |
| 710 <span>string</span> | |
| 711 </span> | |
| 712 </span> | |
| 713 ) | |
| 714 </div> | |
| 715 </em> | |
| 716 </dt> | |
| 717 <dd class="todo"> | |
| 718 Undocumented. | |
| 719 </dd> | |
| 720 <!-- OBJECT PROPERTIES --> | |
| 721 <!-- OBJECT METHODS --> | |
| 722 <!-- OBJECT EVENT FIELDS --> | |
| 723 <!-- FUNCTION PARAMETERS --> | |
| 724 </div> | |
| 725 </div><div> | |
| 726 <div> | |
| 727 <dt> | |
| 728 <var>Error</var> | |
| 729 <em> | |
| 730 <!-- TYPE --> | |
| 731 <div style="display:inline"> | |
| 732 ( | |
| 733 <span id="typeTemplate"> | |
| 734 <span> | |
| 735 <span>string</span> | |
| 736 </span> | |
| 737 </span> | |
| 738 ) | |
| 739 </div> | |
| 740 </em> | |
| 741 </dt> | |
| 742 <dd class="todo"> | |
| 743 Undocumented. | |
| 744 </dd> | |
| 745 <!-- OBJECT PROPERTIES --> | |
| 746 <!-- OBJECT METHODS --> | |
| 747 <!-- OBJECT EVENT FIELDS --> | |
| 748 <!-- FUNCTION PARAMETERS --> | |
| 749 </div> | |
| 750 </div> | |
| 751 </dl> | |
| 752 </dd> | |
| 753 <!-- OBJECT METHODS --> | |
| 754 <!-- OBJECT EVENT FIELDS --> | |
| 755 <!-- FUNCTION PARAMETERS --> | |
| 756 </div> | |
| 757 </div> <!-- /apiItem --> | |
| 758 </div> <!-- /apiGroup --> | |
| 759 </div> <!-- /apiPage --> | |
| 760 </div> <!-- /gc-pagecontent --> | |
| 761 </div> <!-- /g-section --> | |
| 762 </div> <!-- /codesiteContent --> | |
| 763 <div id="gc-footer" --=""> | |
| 764 <div class="text"> | |
| 765 <p> | |
| 766 Except as otherwise <a href="http://code.google.com/policies.html#restrictions
">noted</a>, | |
| 767 the content of this page is licensed under the <a rel="license" href="http://c
reativecommons.org/licenses/by/3.0/">Creative Commons | |
| 768 Attribution 3.0 License</a>, and code samples are licensed under the | |
| 769 <a rel="license" href="http://code.google.com/google_bsd_license.html">BSD Lic
ense</a>. | |
| 770 </p> | |
| 771 <p> | |
| 772 ©2011 Google | |
| 773 </p> | |
| 774 <!-- begin analytics --> | |
| 775 <script src="https://www.google-analytics.com/urchin.js" type="text/javascript">
</script> | |
| 776 <script src="https://www.google-analytics.com/ga.js" type="text/javascript"></sc
ript> | |
| 777 <script type="text/javascript"> | |
| 778 // chrome doc tracking | |
| 779 try { | |
| 780 var engdocs = _gat._getTracker("YT-10763712-2"); | |
| 781 engdocs._trackPageview(); | |
| 782 } catch(err) {} | |
| 783 // code.google.com site-wide tracking | |
| 784 try { | |
| 785 _uacct="UA-18071-1"; | |
| 786 _uanchor=1; | |
| 787 _uff=0; | |
| 788 urchinTracker(); | |
| 789 } | |
| 790 catch(e) {/* urchinTracker not available. */} | |
| 791 </script> | |
| 792 <!-- end analytics --> | |
| 793 </div> | |
| 794 </div> <!-- /gc-footer --> | |
| 795 </div> <!-- /gc-container --> | |
| 796 </body></html> | |
| OLD | NEW |