PopupNotifications.jsm

  • Revision slug: JavaScript_code_modules/PopupNotifications.jsm
  • Revision title: PopupNotifications.jsm
  • Revision id: 54974
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment 5 words removed

Revision Content

{{ gecko_minversion_header("2.0") }}

The PopupNotifications.jsm JavaScript code module provides a popup notification box service. This service is used, for example, to display Geolocation related notifications.

popupnotification.png

To use this, you first need to import the code module into your JavaScript scope:

Components.utils.import("resource://gre/modules/PopupNotifications.jsm");

Once you've imported the module, you can then use the PopupNotifications object it exports; this object provides methods for creating and displaying popup notification panels.

Method overview

reset()

Methods

reset

The reset() method resets the saved URL to the default, which is an empty string.

reset();
Parameters

None.

Revision Source

<p>{{ gecko_minversion_header("2.0") }}</p>
<p>The <code>PopupNotifications.jsm</code> JavaScript code module provides a popup notification box service. This service is used, for example, to display Geolocation related notifications.</p>
<p><img alt="popupnotification.png" class="internal default" src="/@api/deki/files/4905/=popupnotification.png"></p>
<p>To use this, you first need to import the code module into your JavaScript scope:</p>
<pre>Components.utils.import("resource://gre/modules/PopupNotifications.jsm");
</pre>
<p>Once you've imported the module, you can then use the <code>PopupNotifications</code> object it exports; this object provides methods for creating and displaying popup notification panels.</p>
<h2>Method overview</h2>
<table class="standard-table"> <tbody> <tr> <td><code>reset()</code></td> </tr> </tbody>
</table>
<h2>Methods</h2>
<h3>reset</h3>
<p>The <span style="font-family: monospace;">reset</span><code>()</code> method resets the saved URL to the default, which is an empty string.</p>
<pre>reset();
</pre>
<h6>Parameters</h6>
<p>None.</p>
Revert to this revision