popupshowing

  • Revision slug: Mozilla_event_reference/popupshowing
  • Revision title: popupshowing
  • Revision id: 318829
  • Created:
  • Creator: louisremi
  • Is current revision? No
  • Comment

Revision Content

The popupshowing event is executed when a <menupopup>, <panel> or <tooltip> is about to become visible. The default action of the event can be prevented to prevent the popup to appear.

General info

Specification
XUL
Interface
PopupEvent
Bubbles
Yes
Cancelable
Yes
Target
element
Default Action
A popup is displayed

Properties

{{OpenEventProperties()}}{{CloseEventProperties()}}

Revision Source

<p>The <code>popupshowing</code> event is executed when a <a href="/en-US/docs/XUL/menupopup"><code>&lt;menupopup&gt;</code></a>, <a href="/en-US/docs/XUL/panel"><code>&lt;panel&gt;</code></a> or <a href="/en-US/docs/XUL/tooltip"><code>&lt;tooltip&gt;</code></a> is about to become visible. The default action of the event can be <a href="/en-US/docs/DOM/event.preventDefault" title="/en-US/docs/DOM/event.preventDefault">prevented</a> to prevent the popup to appear.</p>
<h2 id="General_info">General info</h2>
<dl>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Specification</dt>
  <dd style="margin: 0 0 0 120px;">
    XUL</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Interface</dt>
  <dd style="margin: 0 0 0 120px;">
    PopupEvent</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Bubbles</dt>
  <dd style="margin: 0 0 0 120px;">
    Yes</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Cancelable</dt>
  <dd style="margin: 0 0 0 120px;">
    Yes</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Target</dt>
  <dd style="margin: 0 0 0 120px;">
    element</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Default Action</dt>
  <dd style="margin: 0 0 0 120px;">
    A popup is displayed</dd>
</dl>
<h2 id="Properties">Properties</h2>
<p>{{OpenEventProperties()}}{{CloseEventProperties()}}</p>
Revert to this revision